Skip to main content

Initiate chunked upload

POST 

/:workspace/media/chunked/initiate

Step 1 of the chunked upload flow. Creates an upload session and returns the upload_uuid together with the chunk plan your client must follow (chunk_size and total_chunks).

How the chunk plan is calculated:

  • If total_size is not larger than the configured chunk size, the file is sent as a single chunk (chunk_size equals total_size, total_chunks is 1).
  • Otherwise the chunk size comes from your instance's MIXPOST_CHUNKED_UPLOAD_SIZE setting (default 10 MB) and is always clamped to between 10 MB and 64 MB. These bounds are fixed and cannot be configured.
  • An upload may use at most 1000 chunks, so for very large files the chunk size is increased as needed (still never above 64 MB) to keep the count within that limit.

Always use the returned chunk_size and total_chunks rather than computing your own.

The session belongs to the workspace it was opened in and to the user the token authenticates as. Every later step must be addressed to that same workspace with that same token — a session addressed from anywhere else is reported as not found.

Request

Responses

Upload session created.