Files
Upload a file
Accepts multipart/form-data with fields:
- file: binary (required)
- file_metadata: string (optional, JSON string)
POST
Upload a file
Authorizations
Body
multipart/form-data
Multipart upload with file and optional metadata
Response
File uploaded successfully
Metadata describing an uploaded file in Chunkr.
Returned by POST /files and GET /files/{file_id}.
MIME type detected or provided for the file.
Timestamp when the file was created.
Unique identifier for the file.
The original filename supplied by the client.
Size of the stored file in bytes.
Arbitrary JSON metadata associated with the file.
Permanent Chunkr URL. Use directly with other chunkr API requests.
Previous
Get FileReturns metadata for a file owned by the authenticated user.
The response includes a permanent `ch://files/{file_id}` URL,
file name, content type, size, user-provided metadata, and timestamps.
If the file is not found or the user is not authorized, the response will be 401 Unauthorized.
Next
Upload a file