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 auto-generation (overwrites existing files with same name, may have caching delays)
- 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
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, a random file name will be generated. If the same file name is uploaded again, the old file will be overwritten, but changes may not take effect immediately due to caching
Example:
"my-image.jpg"
Response
File uploaded successfully
Whether the request was successful
Response Status Code
Code | Description |
---|---|
200 | Success - Request has been processed successfully |
400 | Bad Request - Request parameters are incorrect or missing required parameters |
401 | Unauthorized - Authentication credentials are missing or invalid |
405 | Method Not Allowed - Request method is not supported |
500 | Server Error - An unexpected error occurred while processing the request |
Available options:
200
, 400
, 401
, 405
, 500
Response message
Example:
"File uploaded successfully"