I have a PCF File Attachment component that allows the user to select a local file when the button is clicked. I would like to upload the file selected by the user to Azure Blob Storage. How can this be done?
Copying my other answer as I think this is a duplicate of the other question
If you are (as I assume you are) wanting the PCF component to store the file in the blob storage directly you will need to register the PCF as a component in your Azure Active directory client and include code to authenticate the PCF component before initiating the upload.
https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-blob/samples has some things that may help.
Personally I would be using the powerapp application to upload the data using an action and getting that to do the hard work (but then I do like to keep communications simple to avoid CORS issues).
WarrenBelz
87
Most Valuable Professional
mmbr1606
71
Super User 2025 Season 1
Michael E. Gernaey
65
Super User 2025 Season 1