Skip to main content

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

FieldTypeRequiredDescription
api_keystringYesYour Valossa API key
upload_idstringYesUpload ID from initialize_file_upload
chunk_indexintegerYesZero-based chunk index (0, 1, 2, ...)
file_datafileYesChunk 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_index must match the correct file slice.
  • After all chunks are uploaded, call POST /finalize_file_upload.