internet-explorer - 使用 IE9 的 Blueimp 文件 uploader

标签 internet-explorer angularjs internet-explorer-9 blueimp ajax-upload

我正在 AngularJS 应用程序中使用此插件将文件上传到 REST API。 在“fileuploaddone”事件触发几秒后,我收到来自 Internet Explorer 的黄色通知:Would you like save\open the

附上截图。

enter image description here

最佳答案

Iframe based uploads require a Content-type of text/plain or text/html for the JSON response - they will show an undesired download dialog if the iframe response is set to application/json.

来源:https://github.com/blueimp/jQuery-File-Upload/wiki/Setup#content-type-negotiation

您需要按照上面的链接中的说明设置正确的 Content-Type。

关于internet-explorer - 使用 IE9 的 Blueimp 文件 uploader ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19640211/

相关文章:

asp.net - 现有网站在 Internet Explorer 8 中正确呈现有哪些问题?

json - 数据绑定(bind) Controller 服务 : works for objects but not for numbers

Angularjs - 如何检查唯一输入以及是否有重复标记为无效

javascript - 在激活开发人员工具之前,带有 JS 的网站无法在 IE9 中运行

javascript - 跨机器的相同浏览器版本上的 JavaScript 行为不一致

internet-explorer - 动态添加样式表时的 IE 8 和 7 错误

html - 无法将 CSS PIE 样式应用于 IE。*

javascript - 使用 HTML 音频标签播放二进制字符串

Javascript 在 IE9 中间歇性执行

javascript - IE8绝对位置+不透明度问题