Overview
This node uploads media files (images or videos) to the Blotato platform, which is used for social media publishing. It supports two upload methods: uploading directly from a public URL or uploading from binary data available in the workflow. This node is useful when automating content publishing workflows where media assets need to be uploaded and managed on Blotato before posting.
Practical examples:
- Uploading an image from a publicly accessible URL to prepare it for social media scheduling.
- Uploading a video file that was previously downloaded or generated within the workflow as binary data.
- Automating bulk media uploads by looping over multiple items containing URLs or binary media.
Properties
| Name | Meaning |
|---|---|
| Upload Method | Method to upload the media. Options: "URL" (upload from a media URL), "Binary Data" (upload from binary data in the workflow). |
| Media URL | The URL of the media to upload (image or video). Required if "Upload Method" is set to "URL". |
| Binary Property | The name of the binary property containing the file to upload. Required if "Upload Method" is set to "Binary Data". Default is "data". |
| Output Field | The field name in the output JSON where the uploaded media URL will be stored. Default is "mediaUrl". |
Output
The node outputs an array with one item per input. Each item contains a JSON object with:
- A field named as specified by the "Output Field" property (default
mediaUrl), containing the URL of the uploaded media returned by Blotato. - A
mediaUploadResponsefield containing the full response object from the Blotato API for the upload request.
If the upload fails and the node is configured to continue on failure, the output JSON will contain an error field with the error message.
The node does not output binary data.
Dependencies
- Requires an API key credential for authenticating with the Blotato API.
- Uses the Blotato API endpoint
/mediato upload media files. - The node expects either a valid media URL or binary data present in the input items.
- No additional environment variables are required beyond the API credential.
Troubleshooting
Error: No binary data found in property "X"
Occurs if the selected binary property does not exist or is empty in the input item.
Resolution: Verify that the binary property name matches exactly and that the input item contains binary data under that property.API request failures
Could be due to invalid credentials, network issues, or unsupported media formats.
Resolution: Check the API key validity, ensure the media URL or binary data is accessible and correctly formatted, and verify network connectivity.Empty or missing media URL in output
Indicates the upload did not return a valid URL.
Resolution: Inspect the fullmediaUploadResponsefor error details and confirm the media meets Blotato's requirements.
Links and References
- Blotato API Documentation (hypothetical link, replace with actual if available)
- n8n documentation on working with binary data
- n8n documentation on credentials