Force file download for IE9 on Azure Blob Storage

女生的网名这么多〃 提交于 2019-12-07 19:01:12

问题


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.


回答1:


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




回答2:


You can now by right clicking the resource - properties.



来源:https://stackoverflow.com/questions/8284630/force-file-download-for-ie9-on-azure-blob-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!