MediaCockpit DAM icon

MediaCockpit DAM

Interact with MediaCockpit DAM REST API

Upload Asset

AI-generated

Summary

Upload a new asset file to MediaCockpit DAM, either from binary data provided by a previous node or by downloading the file from a specified URL, and optionally assign it to a target folder or collection.

Inputs

  • Folder/Collection ID — Key or ID of the folder or collection where the asset will be uploaded.
  • Upload Mode (required) — Choose whether to upload the asset from binary data available in the workflow or to download and upload the file from a URL.
  • File URL — The URL of the file to download and upload when using the "URL" upload mode.
  • Filename — Optional filename to use for the uploaded asset. If empty, the filename is derived from the binary data, URL, or generated automatically.

Output shape

a single item with JSON containing the uploadResult object from the MediaCockpit DAM API response

The operation returns the JSON response from the MediaCockpit DAM API after uploading the asset, including any metadata or status information. Errors include details about failure reasons, such as missing inputs or download errors. The workflow input item must contain binary data named 'data' when using binary upload mode.

Examples

Example 1: Upload asset from binary data in a previous node

Set Upload Mode to 'Binary Data' and ensure the previous node outputs binary data under the key 'data'. Optionally specify the Folder/Collection ID and Filename.

Example 2: Upload asset by downloading from a URL

Set Upload Mode to 'URL' and provide the File URL. Optionally specify the Folder/Collection ID and Filename; if Filename is empty, it will be derived from the URL or generated.

Links

Discussion