Skip to main content

Upload a chunk

POST 

/:workspace/media/chunked/:uploadUuid/upload

Step 2 of the chunked upload flow. Uploads a single chunk, identified by a zero-based chunk_index between 0 and total_chunks - 1. Chunks may be sent in any order — and in parallel — because they are reassembled in chunk_index order when the upload is completed.

Each chunk must be no larger than the chunk_size returned by the initiate step.

The upload session is identified by the uploadUuid in the URL: the upload_session field is filled in by the server from that URL, and any value you send for it in the request body is ignored.

Request

Responses

Chunk stored. The response body differs by storage backend: local disks return {chunk_index, size}, S3-backed disks return {chunk_index, part_number}.