Upload file chunks (Resumable Step 2)

Upload file chunks (Resumable Step 2)

Uploads a piece of the file. The maximum size of one chunk is 10 MB. Chunks are uploaded sequentially until the entire file is transferred.

Samples:

Uploading the first chunk:

curl --location -g --request PUT 'https://{portal-url}/api/v2/storage/file.zip?format=resumable' \
--header 'Content-Range: bytes 0-10485759/52428800' \
--data-binary @chunk1.bin

Uploading the last chunk:

curl --location -g --request PUT 'https://{portal-url}/api/v2/storage/file.zip?format=resumable' \
--header 'Content-Range: bytes 41943040-52428799/52428800' \
--data-binary @last_chunk.bin
Path Parameters
  • filePath
    string
    required

    The same path specified when initializing the upload at Step 1.

Query Parameters
  • format
    const:
    resumable
    required

    Must be 'resumable'.

Headers
  • Content-Range
    string
    required

    Specifies the byte range of the current chunk and total file size. Format: bytes {start}-{end}/{total} or bytes {start}-{end}/* (when total size is unknown). The {start} value must equal the last successfully uploaded byte + 1. For the final chunk, {end} + 1 must equal {total}.

Body
application/octet-stream

Raw bytes of the file chunk.

string binary

binary data, used to describe files

Responses
  • 202

    Intermediate response. The chunk was successfully received, but the upload is not yet complete.

PUT/storage/{filePath}

{
  "content": null,
  "fileFullName": "Storage\\file.zip",
  "fileName": "file.zip",
  "isFolder": false,
  "modifiedBy": "admin",
  "modifiedOn": "2025-10-31T09:45:00",
  "size": 52428800
}