API reference for uploading and managing public files
POST /api/public_upload
Form Data:
Field | Type | Required | Description |
---|---|---|---|
file | file | Yes | The file to upload |
Field | Type | Description |
---|---|---|
filename | string | The generated filename for the uploaded file |
content_type | string | The MIME type of the uploaded file |
size_bytes | integer | The size of the file in bytes |
public_url | string | The public URL where the file can be accessed |
Status Code | Description |
---|---|
400 | Bad Request - Invalid file type or file exceeds size limit |
401 | Unauthorized - Invalid or missing token |
403 | Forbidden - Insufficient permissions to upload files |
413 | Payload Too Large - File size exceeds the maximum allowed limit |
500 | Internal Server Error - Server-side error |