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.
VAIBHAV BHARDWAJPosted Sep 3, 2008, 7:34 AM
VAIBHAV BHARDWAJPosted Sep 3, 2008, 7:34 AM
Koushik DePosted Sep 3, 2008, 2:39 AM
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 -