I have a form with an attachment control. The attachment control lets me upload to the blob storage, however, i cant download or view the uploaded files from Canvas app. Any idea how to view or download the file from canvas app?

I have a form with an attachment control. The attachment control lets me upload to the blob storage, however, i cant download or view the uploaded files from Canvas app. Any idea how to view or download the file from canvas app?
To view or download a file from Blob Storage in a Canvas app, you can use the Azure Blob Storage connector in Power Apps. Here's a step-by-step guide:
Add the Azure Blob Storage connector to your Power Apps app. Go to the "View" tab and click on "Data sources." Select "Add data source" and search for "Azure Blob Storage." Follow the prompts to connect to your Blob Storage account.
Once the connector is added, you need to fetch the URL of the file in Blob Storage. You can do this by using the GetBlobMetadata function from the Azure Blob Storage connector. Here's an example of how to retrieve the URL:
Set(
BlobURL,
AzureBlobStorage.GetBlobMetadata("your-container-name", "your-blob-name").@contentLink
)
Replace "your-container-name" with the name of the container in your Blob Storage account where the file is stored, and "your-blob-name" with the name of the specific blob/file you want to download.
Now that you have the Blob Storage URL, you can use it to view or download the file in the Canvas app. For example, you can use a button with the following formula to open the file in a browser:
Launch(BlobURL)
When the button is clicked, it will open the file in the user's default browser, allowing them to view or download it.
Make sure to adjust the container and blob names based on your Blob Storage setup, and use appropriate controls and actions in your app to implement the desired functionality.
Remember to set appropriate permissions on your Blob Storage container to ensure that the app and its users have the necessary read access to the blobs/files.