2
votes

Where can I update the response header to include "Content-Disposition" in the azure portal for blob storage? I only see the meta-data one.

https://docs.microsoft.com/en-us/rest/api/storageservices/setting-and-retrieving-properties-and-metadata-for-blob-resources The above is the link I can find about setting properties and meta data. Dose azure even support modifying "Content-Disposition" in header?

4

4 Answers

4
votes

Does azure even support modifying "Content-Disposition" in header?

You can certainly change Content-Disposition header property of a blob. It's just that Portal UI does not allow you to do that. You can use any available Storage Explorers (like Microsoft's Storage Explorer) to achieve the same or can change it programmatically as well.

2
votes

Yes, it's supported. Just it's an optional Request Header so it's not listed in the link you pasted.

So if you want to set the Content-Disposition header, you need use this x-ms-blob-content-disposition. About details you could find in this doc:Set Blob Properties.

0
votes

I would recommend Logic Apps; you can use the connectors that allow you to host a publicly available endpoint, connect to Blob Storage, and modify your response headers.

Logic App

0
votes

Please find more information on these headers at Get Blob and use the Storage Explorer

You may also refer to this SO thread, Here is the steps how you can try in PS cmdlets

Additional information

"name": "@replace(outputs('GetFileContents')['headers']['Content-Disposition'],'attachment; filename=','')"