Actions28
- Message Actions
- Chat Actions
- Contact Actions
- Session Actions
- Media Actions
- Storage Actions
- Webhook Actions
- Ticket Actions
Media → Upload Binary
AI-generatedSummary
Uploads a file from an incoming n8n binary property to a WAOtomatis session's media library via multipart POST, returning the API's JSON response for the uploaded media.
Inputs
- Session (required) — The WAOtomatis session (connected WhatsApp number) to upload to. Pick from a searchable list or enter an ID (letters, digits, underscores, hyphens). Throws an error if none is selected.
- Input Binary Field (required) — Name of the incoming item's binary property holding the file (default "data"). The node errors if that binary data is missing.
Output shape
One output item per input item, with the API's JSON response in json (parsed from a string if needed). Typically this includes the media id for later use.
The file's MIME type and file name are taken from the binary metadata, falling back to application/octet-stream and "file". No binary data is passed through to the output. With Continue On Fail enabled, failures yield an item with json.error. The exact response fields aren't defined in the node source. The Message → Send operation's "By Media ID" option can use the returned media id.
Examples
Example 1: Upload a PDF fetched by an HTTP Request node so it can be sent as a WhatsApp document.
Session: choose from list; Input Binary Field: data. Pass the returned media id to Message → Send with Media Source = By Media ID.
Example 2: Upload an image from a Read Binary File node that stores it under a custom field name.
Session: By ID (sess_...); Input Binary Field: image
