Click here to Skip to main content
15,888,297 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

We are facing an issue with the File upload on our site. We are accepting 4 pdf files from the user one by one. We have set the upload limit to a little less than 2GB in web.config for the staging site. However, even if we upload files totalling up to 1MB, Internet Explorer is giving error as "Internet Explorer cannot display the webpage". The upload is working fine in Mozilla FireFox and Google Chrome.

The entry in web.config says :

<httpruntime executiontimeout="300" maxrequestlength="2097151" />


Am I missing something?

Please help.

Thanks.
Posted
Updated 18-Apr-11 23:03pm
v3

executiontimeout is 5 minutes. Is this sufficient to get the files uploaded? and 2GB using file upload doesn't seem to be a good idea.

http://stackoverflow.com/questions/1553233/2-gb-file-upload-in-c[^]
 
Share this answer
 
v3
Comments
mini119 19-Apr-11 6:37am    
I have increased those settings to allow my file to get uploaded. In fact, I am not uploading files of size more than 2MB.
You need to check out the logs to determine why the upload is failing. There could be various reasons.

Do you have exception handling in place? Check out the application logs.
Do you have access to the server your website is deployed to? If yes, the very first place to check is the Event Log. It usually contains detailed information. You may also like to check the IIS logs and httperr log file on the server.

Once you have detailed information about the problem, you can work out on the various possible solutions. :thumbsup:
 
Share this answer
 
Comments
mini119 19-Apr-11 6:38am    
Thanks for your suggestions. I will have those logs checked.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900