This endpoint only accept multipart/form-data requests. Base64 was previously supported but is no longer recommended and will be deprecated in the future.
Bearer token for authentication (e.g., Bearer <your-api-key>).
Content-Type
string
default:"multipart/form-data"
required
multipart/form-data
Query Parameters
The name of the target bucket.
The destination path for the file (e.g., folder/image.png or folder/).
If true, overwrites existing files at the specified path.
If true, generates a thumbnail for uploaded images. Thumbnail will be available at {bucketName}/{filepath}/filename_thumb.webp.
The file content to upload.
An array of files to upload.
Response
Indicates if the upload was successful.
The public URL of the uploaded file.
The file path/key in the bucket.
Examples
curl -X POST https://cdn.sacul.cloud/{bucketName}/{filepath} \
-H "Authorization: Bearer <your-api-key>" \
-F "file=@/path/to/your/file.jpg"
curl -X POST https://cdn.sacul.cloud/{bucketName}/{filepath} \
-H "Authorization: Bearer <your-api-key>" \
-F "files=@/path/to/your/file1.jpg" \
-F "files=@/path/to/your/file2.jpg"