Overview
This node uploads media files to the Xgate Media API. It is useful for scenarios where you need to programmatically upload images or other media files to a remote media management service. For example, it can be used in workflows that automate media asset management, such as uploading product images to a digital asset management system or backing up media files to a cloud service.
Use Case Examples
- Uploading images from a local source to the Xgate Media API for centralized storage.
- Automating the upload of media files received from other nodes in a workflow to the Xgate media service.
Properties
| Name | Meaning |
|---|---|
| Resource | Specifies the resource type to interact with, here it is fixed to 'Media'. |
Output
JSON
url- The URL of the uploaded media file returned by the Xgate Media API.
Dependencies
- Requires an API key credential for the Xgate Media API, which includes a tenantId used for authentication.
Troubleshooting
- If the API response status is not 'OK', the node throws an error indicating an issue with the Xgate Media API. Check the API credentials and network connectivity.
- Ensure the input data contains valid binary data with proper filename and MIME type, as the node uploads this data as a file.
- The environment variable XGATE_MEDIA_API_URL can be set to override the default API endpoint URL if needed.
Links
- Xgate Media API Endpoint - The default API endpoint used by the node to upload media files.