2011-04-18 4 views
2

이 질문은 stackoverflow.com에서 답변을 제공하며 여기에서 해결책을 얻었습니다. 그러나, 내 경우에는 작동하지 않습니다.파일 업로드 - Internet Explorer에서 웹 페이지를 표시 할 수 없습니다.

나는 pdf 파일 만 허용하는 파일 업로드 컨트롤을 가지고 있습니다. 사용자는 4 개의 pdf 파일을 하나씩 업로드 할 수 있습니다. 즉, 사용자는 하나의 파일을 선택하여 업로드 한 후 다음 파일에 대해 동일한 절차를 수행해야합니다. 나는 300 600 KB 정도입니다 PDF 파일을 업로드하려고

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

: 내 Web.config의에서 설정이되어 다음. 처음 두 파일은 성공적으로 업로드되지만 세 번째 파일의 경우 오류 (?)가 나타납니다. 두 번째 파일의 경우도 있습니다. Mozilla FireFox에서는 잘 작동하지만 Internet Explorer에서는 제대로 작동하지 않습니다.

아무도 도와 줄 수 있습니까? 자세한 내용은 알려 주시기 바랍니다.

감사합니다.

+0

twarita

답변

1

나는 동일한 행동을 취했다.

IE8 및 Chrome 프레임이있는 Wireshark로 약간만 재생되었습니다. Internet Explorer 요청이 업로드 후 서버에 의해 닫혔지만 Chrome 프레임은 발견되지 않았습니다. Chrome에 302가 있고 리디렉션되었지만 IE에는 TCP (TCP) FIN, ACK 만 있습니다. 아니 500, 아니 302, 아니 아무것도. 연결이 서버에 의해 막 막혔습니다.

구글 크롬 프레임 요청 헤더 (작업 좋은) : 그것을 도울 수 있다면 다음

, 브라우저에서 사용하는 헤더입니다

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 

인터넷 익스플로러 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 

난 아직도 이유를 찾고 있어요 ...

관련 문제