Valums文件上传不会在Internet Explorer 9中工作 [英] Valums file-uploader doesn't work under Internet Explorer 9
问题描述
Valums文件上传(现在叫的精细上传)下的Internet Explorer 9,但wors Chrome浏览器下无法正常工作。
Valums file-uploader (now called Fine Uploader) doesn't work under Internet Explorer 9 but wors fine under Chrome.
所以在IE下它显示的文件和按钮来取消,没有%上传的名称。
So under IE it shows the name of the file and button CANCEL and no % of uploading.
任何线索?
更新:
解决方案是在这里,以及<一个href="http://stackoverflow.com/questions/4888632/mvc-valums-ajax-uploader-ie-doesnt-send-the-stream-in-request-inputstream">MVC Valums阿贾克斯上传 - IE浏览器不会在request.InputStream发送流
Solution is here as well MVC Valums Ajax Uploader - IE doesn't send the stream in request.InputStream
推荐答案
我知道这个问题被提出在asp.net具体,但它来了,当我搜索valums AJAX上传IE9,所以我会后我的修复此情况下,它可以帮助语言中的任何一个像我一样,无论:
I know this question was filed under asp.net specifically, but it came up when I searched for "valums ajax upload IE9", so I'll post my fix here in case it helps anyone like myself regardless of language:
我返回从AJAX JSON响应要求上传与应用/ JSON的内容头。 IE9不知道该怎么办的应用程序/ JSON的内容(而Chrome / FF /等做的)。
I was returning a JSON response from the AJAX upload request with a "application/json" content header. IE9 does not know what to do with "application/json" content (but Chrome/FF/etc do).
我通过确保返回了的text / html MIME类型的HTTP标头从服务器我JSON响应解决了这个问题。
I fixed this by making sure to return a "text/html" MIME type http header on my json response from the server.
现在IE浏览器不再试图下载的响应!干杯
Now IE is no longer trying to download the response! Cheers
这篇关于Valums文件上传不会在Internet Explorer 9中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!