For the complete documentation index, see llms.txt. This page is also available as Markdown.

Importing Attachments during Asset Import

Hub allows you to import attachments together with assets, at the same time.

To do so, you will have to use the Cloud Import JSON method for importing assets, as explained below:

  1. In your project, go to the Assets tab and click on the Add Data button.

  2. From the dialog that appears, enter the Cloud Storage tab.

  3. Prepare a JSON formatted like the following. It is an array of objects, with each object representing an asset. Each object, then, in its attachments property, will have a list of attachments, like so:

[
    {
        "externalId":"my_external_id",
        "data":"https://url-to.asset/video.mp4",
        "attachments":[
            {"type":"IMAGE","value":"https://angohub-public-assets.s3.amazonaws.com/uploaded-data-6cbc3c56-58f9-4430-990d-863bd5a1a755.jpg"},
            {"type":"TEXT","value":"This is a text attachment."}
        ]
    }
]

Importing attachments from private storage

If an attachment file is located in a private storage you have connected to Ango Hub, append the storage integration's ID to the attachment URL with ?storageId=YOUR_STORAGE_ID.

You can find the storage integration ID from the Storages tab in the Organization page, or with the get_storages() SDK function.

For example:

If the main asset is also in private storage, select the correct storage integration from the Storage Method dropdown when uploading the JSON.

  1. Drag and drop the JSON you've just created on the Cloud Storage file box:

  2. Your assets with attachments will appear in the Assets tab.

See the pages on attachments and cloud import for more on each topic.

Last updated