☁️ Uploads Official Documentation

⋙ Create Upload

Creates an intermediate Upload object that you can add Parts to.

msg.payload Properties

filename string
The name of the file to upload.
purpose string
The intended purpose of the uploaded file.
bytes integer
The number of bytes in the file you are uploading.
mime_type integer
This must fall within the supported MIME types for your file purpose.

⋙ Add Upload Part

Adds a Part to an Upload object.

msg.payload Properties

upload_id string
The ID of the Upload.
data file
The chunk of bytes for this Part.

⋙ Complete Upload

Completes the Upload.

msg.payload Properties

upload_id string
The ID of the Upload.
part_ids array
The ordered list of Part IDs.
md5 string
The optional md5 checksum for the file contents.

⋙ Cancel Upload

Cancels the Upload.

msg.payload Properties

upload_id string
The ID of the Upload.