2011-04-18 62 views
2

我知道這個問題已在stackoverflow.com解決,我也從這裏得到了解決方案。但是,它不適用於我的情況。文件上傳 - Internet Explorer無法顯示網頁

我有一個文件上傳控制只接受pdf文件。用戶可以逐個上傳4個pdf文件,即用戶必須選擇一個文件,上傳它,然後按照相同的步驟下一個文件。以下是我的web.config中的設置:

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

我想上傳大約300到600 KB的pdf文件。前兩個文件成功上傳,但是第三個文件出現錯誤(?)。有時候,第二個文件也是這種情況。這些東西在Mozilla FireFox上運行良好,但在Internet Explorer上卻沒有。

任何人都可以幫助我在這種情況下?請告訴我更多詳情。

謝謝!

+0

twarita 2011-04-18 15:18:42

回答

1

我得到了同樣的行爲。

與IE8和Chrome Frame的Wireshark玩了一下。發現上傳後服務器關閉了IE請求,但Chrome Frame沒有。 Chrome獲得了(http)302並重定向,但IE只獲得了(tcp)FIN,ACK。沒有500,沒有302,沒有。該連接剛剛由服務器關閉。

以下是通過瀏覽器使用的頭,如果它能夠幫助:

谷歌Chrome Frame的請求頭(工作好):

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 

我仍然在尋找一個理由...

相關問題