POST /send_file_chunk
Uploads one file chunk for an existing upload session.
Endpoint
POST https://api-eu.valossa.com/core/1.0/send_file_chunk
Content Type
Use multipart/form-data.
Form Fields
| Field | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | Your Valossa API key |
upload_id | string | Yes | Upload ID from initialize_file_upload |
chunk_index | integer | Yes | Zero-based chunk index (0, 1, 2, ...) |
file_data | file | Yes | Chunk file bytes |
Response
Successful response (200) indicates the chunk was received.
Example
curl -F "api_key=YOUR_API_KEY" \
-F "upload_id=7c62bc7b-e143-4a81-aa83-a7eb0ec37077" \
-F "chunk_index=0" \
-F "file_data=@video.mp4.chunk00" \
https://api-eu.valossa.com/core/1.0/send_file_chunk
Notes
- Chunk send order can vary, but each
chunk_indexmust match the correct file slice. - After all chunks are uploaded, call
POST /finalize_file_upload.