Skip to main content

Upload a chunk

Uploads a single chunk of a file. Chunks must be uploaded using multipart/form-data. Each chunk is identified by its index (zero-based).

Method: POST

URL: https://example.com/<MIXPOST_CORE_PATH>/api/<workspaceUuid>/media/chunked/<uploadUuid>/upload

Authorization: Bearer <token>

Body (multipart/form-data):

KeyFormatRequiredDescription
upload_sessionstringrequiredThe upload_uuid returned from the initiate endpoint.
chunkbinaryrequiredThe chunk file binary. Must not exceed the chunk_size from the initiate response.
chunk_indexintegerrequiredZero-based index of this chunk. Must be between 0 and total_chunks - 1.

Response:

{
"chunk_index": 0,
"size": 10485760
}