Max icon

Max

Interact with the MAX Bot API

Upload → Upload Binary

AI-generated

Summary

Upload binary data to MAX using a pre-signed upload URL, specifying the attachment type and which binary property contains the file data.

Inputs

  • Attachment Type (required) — Specifies the type of attachment to upload; options include Audio, File, Image, or Video. Defaults to File.
  • Upload URL (required) — The pre-signed MAX upload URL obtained from a prior Get Upload URL operation where the binary data will be uploaded.
  • Binary Property (required) — The name of the binary property in the input item that contains the file data to upload; defaults to 'data'.

Output shape

a list of JSON objects corresponding to each input item with the raw response data from the upload endpoint.

Each output item contains the normalized response from the binary upload request. Errors are handled per item if Continue On Fail is enabled.

Examples

Example 1: Upload a binary file

Set Attachment Type to 'file', provide the pre-signed Upload URL from a prior Get Upload URL operation, and specify 'data' (default) for Binary Property. The node uploads the binary content from that property to the specified MAX upload URL.

Links

Discussion