How to upload more than 4 MB of file in ASP.NET ?

Dec 12, 2009 Posted by Lara Kannan
As many developers have found when uploading files from an FTP server or shared drive, by default, ASP.NET programs cannot upload a dataset from a file that exceeds 4MB.

Its possible by changing the value of maxRequestLength under the tag of <httpRuntime> in the web.config file.

<httpRuntime executionTimeout="420"  maxRequestLength="40960" />

Please note that the value is in KB.

I hope this will help you. A 'Thank You' would be nice!

Share
Labels: ,

Post a Comment