功能检测内容处理的正确处理:附件?

时间:2013-05-09 17:56:31

标签: html ios safari http-headers browser-feature-detection

有一个known issue where ios Safari will ignore Content-Disposition: attachment个标头。当尝试从单个页面应用程序触发下载时,这是一个相当大的问题(我正在使用iframe hack,但如果有人有任何其他人,则可以接受建议。)

我总是可以直接测试ios:

var iosMobile = (function(userAgent){
                return !!(userAgent.match(/iPad/i) || userAgent.match(/iPhone/i) );
            })(window.navigator.userAgent);

但我宁愿不浏览器嗤之以鼻。有谁知道我如何能够检测内容处理是否得到妥善处理?

0 个答案:

没有答案
相关问题