Sunday, 18 October 2015

Uploading files larger than 5 mb in ASP.NET


  • One of the small stuff that some of the freshers are messing with is uploading the file of size larger than 5 MB or more.
  • It is really so easy to resolve, the thing you need to do is just add a <httpruntime/> tag to your web config file under <system.web> as shown and that's it done.

  • You may change the size 16384 (16 MB) to what ever you want e.g 4096, 8192 or 65536 (64 MB).
  • Enjoy the coding.

No comments:

Post a Comment

How To Pass An Array As A Parameter While Calling an ASP.NET Web API C#

Please visit my C# Corner Blog for this, where I have provided better efforts to make this concept more understandable - www.c-sharpcorner....