Bulk Importing Markdown/HTML Assets
Last updated
Last updated
Ango Hub supports importing Markdown/HTML assets in bulk using a single JSON file.
Your JSON file will need to be in the following format:
Your JSON will be a list of objects. Each object will be a single asset in Ango Hub, and will need to contain an externalId
property and a data
property. The externalId
will be used by Ango Hub to identify your asset. The data
is the Markdown/HTML content itself.
You will need to flatten your markdown/HTML to fit a single line, and to convert all double quotes contained within the string (") to single quotes (').
Failure to do so will result in the Markdown/HTML files not being imported correctly or at all.
For example, the following is an asset containing a link to an image in a private bucket you have already connected to Ango Hub:
From your project's dashboard, enter the Assets tab, then click on the Add Data button. A dialog will appear. Enter the Cloud Upload tab and drag and drop your JSON in the upload box.
Click on Upload to upload your markdown/HTML assets.
If you wish to link to content present in a storage location you have already connected to Ango Hub through a , you will need to append, after the link to the resource, the ?storageId=xxx
property, where xxx
is the ID of the integration to the storage where the file is located. You may find this ID in the Storages tab in the Organization page, or from the SDK function.
Using the ()
function, you may upload bulk Markdown/HTML assets like so: