Uploadfile Control not working for file size > 3MB.
I m using uploadfile control in ASP.NET(C#) so that user can browse the file. After that i want to use that path of the browse file to do my further processing. Its working fine if i m browsing file of size less than 3 MB. When i select a file of large size and click on the browse button which is in a control then it gives an error that PaGE CANNOT bE DISPLAYED. IS there any restriction for uploadfile control regarding the file size.....? Kindly help.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Koushik De6 reputationPosted Sep 2, 2008, 10:39 PM EDT
Hey, please try this. I am sure it will work. I have tried and it is done.
Within element of the web.config of your application, just set the <httpRuntime maxRequestLength="8192"/> .
By default it is 4096 KB. But u can set it to higher values. This change will affect throughout the application. If u want to set for a particular page, then do in this way -
VAIBHAV BHARDWAJ6 reputationPosted Sep 3, 2008, 3:34 AM EDT
VAIBHAV BHARDWAJ6 reputationPosted Sep 3, 2008, 3:34 AM EDT