Upload temporary files via multipart/form-data format. Note: Uploaded files are temporary and automatically deleted after 3 days.
Features
- Supports binary stream upload for various file types
- Suitable for large file uploads with high transmission efficiency
- Automatic MIME type recognition
- Support for custom file names or using original file names
- Returns complete file information and download links
- API Key authentication protection
- Uploaded files are temporary and automatically deleted after 3 days
Usage Recommendations
- Recommended for large files (>10MB)
- Supports various formats: images, videos, documents, etc.
- Transmission efficiency is approximately 33% higher than Base64 format
Example Command
Authorizations
All APIs require authentication via Bearer Token.
Get API Key:
- Visit API Key Management Page to get your API Key
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
- Keep your API Key secure and do not share it with others
- If you suspect your API Key has been compromised, reset it immediately in the management page
Body
multipart/form-data
File to upload (binary data)
File upload path, without leading or trailing slashes
Example:
"images/user-uploads"
File name (optional), including file extension. If not provided, the original filename will be used. If the same filename already exists, the old file will be overwritten, but changes may not be immediately visible due to caching
Example:
"my-image.jpg"