Upload a personal file chunk

Upload canonical base64 bytes to your personal file, index starting at zero. Each decoded chunk must be 262144 bytes except the final chunk. Retrying an index with identical bytes is safe. Only the authenticated owner can upload.

put/api/me/files/{fileId}/chunks/{index}

Request

  • Base URL
    https://www.toma.com
  • URL
    https://www.toma.com/api/me/files/{fileId}/chunks/{index}
  • Auth
    • HTTP bearer
    • or API key in cookie better-auth.session_token

Path parameters

fileIdstring required
indexinteger required

Request body

datastring required

Response

File operation result.

idstring required
pathstring required
cautionstring nullable required

A warning to show the user before they download or open this kind of file (archives, scripts, older Office files, web pages); null when there is none.

sizeinteger required
receivedinteger required
status'uploading' | 'ready' | 'deleting' required
createdAtstring date-time required
canWriteboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.