Tusflow

Upload file chunk

Upload a chunk of the file starting at the specified offset

PATCH
/files/{uploadId}
/files/{uploadId}

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

JWT token for authentication

In: header

X-API-Key<token>

Optional API key for authentication

In: header

Request Body

application/offset+octet-streamRequired

body
Required
string

Format: "binary"

Header Parameters

Upload-Offset
Required
string

Starting offset of the chunk

Content-Type
Required
string

Value in: "application/offset+octet-stream"

Tus-Resumable
Required
string

Value in: "1.0.0"

Path Parameters

uploadId
Required
string

Unique identifier for the upload

curl -X PATCH "https://uploader.tus.api.mpesaflow.com/files/string" \
  -H "Upload-Offset: string" \
  -H "Content-Type: application/offset+octet-stream" \
  -H "Tus-Resumable: 1.0.0" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d 'string'

Chunk uploaded successfully

Edit on GitHub

Last updated on