Endpoint
Content-Type:
multipart/form-data
Form fields
One or more files to upload. Each file is validated for type and size.Allowed types: JPEG, PNG, WebP, AVIF, GIF, HEIC/HEIF, PSD, MP4, MOV, WebMMax size per file: Configurable via
MAX_FILE_SIZE_MB (default: 50 MB)Destination folder path within storage. Nested folders are supported.
photos · uploads/2024/januaryIf omitted, files are stored at the root.Custom filenames for each uploaded file, in the same order as
files. If omitted, the original filename is used.Must include the file extension.Transformation segments to prewarm (pre-generate and cache) immediately after upload. Supports up to 20 variants.
w_800,h_600,c_fill · w_400,f_webp,q_85Pre-warming ensures the first user request is served from cache without any processing delay.Response
200 — All files uploaded successfully
207 — Partial success (some files failed)
400 — Validation error (invalid type, size exceeded, etc.)
true if all files were processed without error.Successfully uploaded files.
Files that failed to upload.
Examples
- Single file
- Upload to folder
- Upload with prewarm
- Multiple files with custom names
Related
Create Folder
Create an empty folder in storage.
Upload & Cache Warming
Prewarm strategy guide.
Delete File
Remove a file and its cached variants.