Actions19
Media → Upload
AI-generatedSummary
Uploads a binary file from the incoming item to Post Mate's media endpoint (POST /api/v1/media) so it can be attached to posts. Returns the API's JSON response for each uploaded file.
Inputs
- Binary Property (required) — Name of the binary property on the input item that holds the file (default "data"). The description states a 50 MB maximum. The node errors if the property is missing on the item.
Output shape
One output item per input item, with the Post Mate API's JSON response in json. If the response is an array, each element becomes its own item.
The source doesn't show the response fields. The Post node's Media Keys (JSON) description says media objects come from POST /v1/media, with fields like key, mime_type and size_bytes. The file is sent as multipart form data using the binary's original file name (or "upload") and MIME type. With Continue On Fail enabled, failed items return { error: message }. Otherwise the node throws.
Examples
Example 1: Download an image over HTTP, upload it to Post Mate, then use it in a scheduled post.
HTTP Request node (file response) → Post Mate: Resource Media, Operation Upload, Binary Property "data". Pass the returned media object into Post → Schedule's Media Keys (JSON) field.
Example 2: Upload a file read from disk under a custom binary property name.
Read Binary File node with property name "video" → Post Mate Media Upload with Binary Property set to "video".