对于IE9强制文件下载在Azure Blob存储 [英] Force file download for IE9 on Azure Blob Storage
问题描述
我想使用的Azure Blob存储作为使用共享访问签名安全的文件下载的位置。一切都进行得很好,但是我遇到的问题是,我想允许用户从浏览器中保存文件和我所有的浏览器,除了IE9工作。
回顾这个问题,
这不过效果很好,当我可以控制所有的头,在Azure中的Blob存储,我已经设置了内容类型应用程序/八位字节流,这使得IE以外所有浏览器要求用户保存文件时,IE浏览器只是打开该文件。看来,已知文件类型的打开(例如.JPG,.WMV等)。
在Azure中,我发现没有办法来设置
$ B文件名=我的文本FILE.TXT$ b
内容处置>
有没有一种方法,使用的Azure Blob存储,使用IE直接的Azure Blob存储?
下载任何文件先谢谢了。
解决方案 我不认为有一种方法来设置内容处置
头中的Windows Azure Blob存储。
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.
解决方案 I don't think there's a way to set the Content-Disposition
header in Windows Azure blob storage.
这篇关于对于IE9强制文件下载在Azure Blob存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!