Skip to main content
Solved

Download documents from AssetMeta (Gearbox.js) component.

  • 1 June 2021
  • 1 reply
  • 118 views

Forum|alt.badge.img+1
Hi, does anyone know how I can download files from AssetMeta and / or AssetDocumentsPanel component? Are there other options for retrieving documents related to an asset?

Best answer by Shehan Karunaratne

Hi Sujan,

You should be able to retrieve the following values from “handleDocumentClick” in  “AssetDocumentsPanel component”

{
    "id": ,
    "name": "",
    "directory": "",
    "mimeType": "PDF",
    "metadata": {
        "Status": "Active",
        "location": ""
    },
    "source": "string",
    "assetIds": [

    ],
    "uploaded": true,
    "uploadedTime": "",
    "createdTime": "",
    "lastUpdatedTime": ""
}

Since we don't have a file download component implemented in Gearbox at the moment, you should be able to pass a download function on “handleDocumentClick” and download a file.

 

Thanks,

Shehan Karunaratne.

View original
Did this topic help you find an answer to your question?

1 reply

Hi Sujan,

You should be able to retrieve the following values from “handleDocumentClick” in  “AssetDocumentsPanel component”

{
    "id": ,
    "name": "",
    "directory": "",
    "mimeType": "PDF",
    "metadata": {
        "Status": "Active",
        "location": ""
    },
    "source": "string",
    "assetIds": [

    ],
    "uploaded": true,
    "uploadedTime": "",
    "createdTime": "",
    "lastUpdatedTime": ""
}

Since we don't have a file download component implemented in Gearbox at the moment, you should be able to pass a download function on “handleDocumentClick” and download a file.

 

Thanks,

Shehan Karunaratne.


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings