Actions16
Other → Upload Media
AI-generatedOverview
This node operation uploads media files to a specified service. It supports uploading multiple files (up to 5 files, each with a maximum size of 2MB). Users can specify the input data field containing the binary file data, provide custom file names, and optionally assign custom keys for each file in the upload request. Additionally, users can choose whether to return the full API response or just the media URLs. This operation is useful for scenarios where media files need to be programmatically uploaded, such as automating content management or integrating media uploads into workflows.
Use Case Examples
- Uploading images or documents from a workflow to a cloud storage or media management service.
- Automating the upload of user-generated content files in a web application.
- Batch uploading multiple media files with custom file names and keys for organized storage.
Properties
| Name | Meaning |
|---|---|
| Files | Files to upload, supporting multiple files with options to specify the input data field name containing the binary data, custom file names, and custom keys for each file in the upload request. |
| Return Full Response | Boolean option to determine whether to return the full API response or just the media URLs. |
Output
JSON
mediaUrls- Array of URLs of the uploaded media files.fullResponse- The full API response returned by the upload operation, if the option to return full response is enabled.
Dependencies
- Requires an API key credential for authentication with the media upload service.
Troubleshooting
- Ensure that the files do not exceed the maximum allowed size of 2MB each; otherwise, the upload will fail.
- Verify that the input data field name correctly matches the field containing the binary file data in the input.
- If the operation fails, check the API credentials and network connectivity.
- If the 'Return Full Response' option is enabled, be prepared to handle the full response structure, which may differ from just receiving media URLs.