Skip to main content

Base64 File Upload

POST 

/api/file-base64-upload

Upload temporary files via Base64 encoded data. Note: Uploaded files are temporary and automatically deleted after 3 days.

Features

  • Supports Base64 encoded data and data URL format
  • Automatic MIME type recognition and file extension inference
  • Support for custom file names or auto-generation
  • Returns complete file information and download links
  • API Key authentication protection
  • Uploaded files are temporary and automatically deleted after 3 days

Supported Formats

  • Pure Base64 String: iVBORw0KGgoAAAANSUhEUgAA...
  • Data URL Format: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...

Usage Recommendations

  • Recommended for small files like images
  • For large files (>10MB), use the file stream upload API
  • Base64 encoding increases data transmission by approximately 33%

Request

Responses

File uploaded successfully