Skip to main content

Uploads a file chunk

POST/v2/stream/:id

Writes file content to the specified upload session. You can upload the entire file at once or upload file fragments in multiple requests.

Fragment Upload Requirements​

  • Each request can upload only one continuous fragment, and you must declare the byte range for that fragment through the HTTP Range request header.
  • Each fragment must be 5 MB, except for the last fragment.
  • The last fragment must not exceed 5 MB.

Request​

Path parameters

    id stringrequired

    uploadId

Body parameters

    string string<binary>

    Byte stream content.

Response

    data object

    Upload result returned by the business.

    property name* string

    Upload result returned by the business.

    expirationTime string<date-time>

    Expiration time.

    nextExpectedRanges string[]

    Byte range that has not yet been received.

Errors

401

Access is unauthorized. Please check whether the correct authorization token is passed.

403

No API access permission. Please complete the relevant authorization on the application management page of the domain administrator.