Force file download for IE9 on Azure Blob Storage

2019-05-27 04:30发布

I am trying to use Azure Blob Storage as a location for secure file downloads using Shared Access Signature. Everything is working very well, however the problem I am having is I am trying to allow the user to save files from the browser and I have all browsers except IE9 working.

Reviewing this question,

What content type to force download of text response?

this works well when I can control all of the headers, however in Azure Blob Storage, I have set the Content-Type to application/octet-stream and this allows all browsers except IE to ask the user to save the file, IE simply opens the file. It appears that known file types will open (example .jpg, .wmv etc…).

In Azure, I have found no way to set

Content-Disposition: attachment;filename="My Text File.txt"

Is there a way, using Azure Blob Storage, to use IE to download any file directly from Azure Blob Storage?

Thanks in advance.

2条回答
一夜七次
2楼-- · 2019-05-27 04:45

I don't think there's a way to set the Content-Disposition header in Windows Azure blob storage.

查看更多
smile是对你的礼貌
3楼-- · 2019-05-27 05:03

You can now by right clicking the resource - properties.

查看更多
登录 后发表回答