上传文件- ie浏览器无法显示该网页



我知道这个问题在stackoverflow.com上得到了回答,我也从这里得到了解决方案。然而,这在我的情况下不起作用。

我有一个文件上传控件,只接受pdf文件。用户可以一个接一个地上传4个pdf文件,即用户必须选择一个文件,上传它,然后按照相同的程序为下一个文件。以下是我的web.config中的设置:

<httpRuntime executionTimeout="180" maxRequestLength="2097151" />

我正在尝试上传大约300到600 kb的pdf文件。前两个文件上传成功,但第三个文件出现错误(?)。有时,第二个文件也是如此。这些东西在Mozilla FireFox上运行良好,但在Internet Explorer上不行。

在这种情况下,有谁能帮帮我吗?如果需要更多的细节,请告诉我。

谢谢!

我得到了相同的行为。

用IE8和Chrome Frame玩了一下Wireshark。上传后发现IE请求被服务器关闭,但Chrome Frame没有。Chrome得到一个(http) 302和重定向,但IE只得到一个(tcp) FIN, ACK。没有500,没有302,什么都没有。服务器刚刚关闭了连接。

如果有帮助的话,下面是浏览器使用的标头:

Google Chrome Frame request headers (working good):

POST /imoveis/anuncio/editar/46209/ HTTP/1.1
Accept-Language: en-US,en;q=0.8
Origin: http://my.app.domain.com.br
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryDKMGqhL7VpWUJMqo
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Referer: http://my.app.domain.com.br/imoveis/anuncio/editar/46209/
Accept-Encoding: gzip, deflate
Host: my.app.domain.com.br
User-Agent: Mozilla/5.0 (Windows NT 6.0; chromeframe/17.0.963.56) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11
UA-CPU: x86
Content-Length: 595570
Connection: Keep-Alive
Cookie: __utma=1.1002822509.1319114684.1330370473.1330376655.5; __utmz=1.1330370473.4.2.utmcsr=my.app.domain.com.br|utmccn=(referral)|utmcmd=referral|utmcct=/; __utmb=1.32.9.1330378511998; __utmc=1; csrftoken=276036c343acffb409104f6cb791c6ab; NREUM=s=1330378484891&r=173412&p=0; sessionid=3b1545b33ae14c8bc627a170fba7b6ac; sessionid=73f3659a6dfc0d66a36d0eeaaceebed8

Internet Explorer 8.0请求标头(工作不正常):

POST /imoveis/anuncio/editar/46209/ HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, */*
Referer: http://my.app.domain.com.br/imoveis/anuncio/editar/46209/
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Content-Type: multipart/form-data; boundary=---------------------------7dc32924501de
Accept-Encoding: gzip, deflate
Host: my.app.domain.com.br
Content-Length: 595617
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: __utma=1.1885672064.1330371076.1330371076.1330376978.2; __utmb=1.16.10.1330376978; __utmz=1.1330371076.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); csrftoken=f46b98f9f51af4e1771f0265c2b5a7b3; NREUM=s=1330378236829&r=190380&p=216226; __utmc=1; sessionid=59a026047075be12b0859a12a1416270

最新更新