我正在 AngularJS 应用程序中使用此插件将文件上传到 REST API。 在“fileuploaddone”事件触发几秒后,我收到来自 Internet Explorer 的黄色通知:Would you like save\open the
附上截图。
最佳答案
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/