如何忽略“内容处置:附件”在Firefox中 [英] How to ignore "Content-Disposition: attachment" in Firefox
问题描述
如何使Firefox能够忽略 Content-Disposition:附件
标题?
我发现绝对烦人,我无法在浏览器中查看图像,因为它要求我下载它。
How can I cause Firefox to ignore the Content-Disposition: attachment
header?
I find it absolutely annoying that I can't view an image in the browser, because it asks me to download it.
我不想下载文件,我只想在浏览器中查看。如果浏览器没有插件来处理,那么然后应该要求下载。
I don't want to download the file, I just want to view it in the browser. If the browser doesn't have a plugin to handle it, then it should ask to download.
例如。我安装了Adobe Acrobat Reader作为Firefox插件。我点击一个链接到PDF,它要求我保存它,当它应该在浏览器中使用插件打开。如果服务器没有在响应中发送 Content-Disposition:attachment
头,则这是行为。
E.g. I have Adobe Acrobat Reader installed as a plugin for Firefox. I click a link to a PDF, and it asks me to save it, when it should open in the browser using the plugin. This is the behaviour if the server does not send the Content-Disposition: attachment
header in the response.
Firefox 3.6.6
Windows XP SP3
Firefox 3.6.6 Windows XP SP3
推荐答案
在浏览器中打开扩展名对于浏览器本机支持的格式很有用,不能确定PDF。
The "Open in browser" extension is useful for formats supported natively by the browser, not sure about PDF.
这篇关于如何忽略“内容处置:附件”在Firefox中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!