Question

PUT request to upload xlsx to Azure Blob Storage

  • 10 January 2023
  • 3 replies
  • 36 views

Badge +2

I am trying to upload an xlsx file to Azure Blob Storage using the REST Web Services action. I have tried setting the Content type to Custom with application/vnd.openxmlformats-officedocument.spreadsheetml.sheet as the type and then adding in the filepath in the parameters/substitution sections but that doesn’t upload the file correctly.

I have also tried using multipart/form-data as the content type and adding in a parameter of type File with the filepath which uploads the file but the content of the file is all scrambled and random characters.

 

How do I upload an xlsx file to Azure Blob Storage using AA?

 

Thanks


3 replies

Userlevel 3
Badge +7

Hi @Matthew 6008 ,

You will be able to upload,

Please find the below,

 

 

 

Userlevel 4
Badge +9

@Matthew 6008  install below packages 

Install-Package Microsoft.Azure.Storage.Blob -Version 11.1.1
Install-Package Microsoft.AspNetCore.StaticFiles -Version 2.2.0
Badge +2

@Matthew 6008  install below packages 

Install-Package Microsoft.Azure.Storage.Blob -Version 11.1.1
Install-Package Microsoft.AspNetCore.StaticFiles -Version 2.2.0

Hi @rbkadiyam 

Can you guide me on where/how I can get these packages?

Reply