API Reference
Uploads
File upload endpoints for images and other media.
POST
Uploads a file to the server storage via the configured storage driver.
multipart/form-data- body
file*fileFile to upload
Format
binaryFile uploaded
application/json- response
url*stringPublic URL of the uploaded file
Format
urikey*stringStorage key
size*integerFile size in bytes
curl -X POST 'https://example.com/api/uploads' \ -F 'file=string'Example Response
{ "url": "http://example.com", "key": "string", "size": 0}GET
Returns the server-side upload limits and allowed file types for client-side validation before upload.
Upload configuration
application/json- response
maxUploadSize*integerMaximum upload size in bytes
allowedTypes*array<string>Allowed MIME types
curl -X GET 'https://example.com/api/uploads/config'Example Response
{ "maxUploadSize": 0, "allowedTypes": [ "string" ]}