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):
| Key | Format | Required | Description |
|---|---|---|---|
upload_session | string | required | The upload_uuid returned from the initiate endpoint. |
chunk | binary | required | The chunk file binary. Must not exceed the chunk_size from the initiate response. |
chunk_index | integer | required | Zero-based index of this chunk. Must be between 0 and total_chunks - 1. |
Response:
- 200
- 401
- 403
- 404
- 422
{
"chunk_index": 0,
"size": 10485760
}
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}
{
"message": "Workspace not found."
}
{
"message": "Validation errors",
"errors": {}
}