Blog

How to prevent large file upload using web.config

By Dhaval Patel Nov 22 2012
How to prevent large file uploading usinf web.config
    • Like
    • Love It
    • Awesome
    • Interesting
    • It's Okay
    • Thumbs Down
  • 2.9k
  • 0
Adding following to the system.web section of the web.config file will also 
prevent over-large uploads from being created

<!-- set max upload to 25 MB -->
< httpRuntime executionTimeout = "300" maxRequestLength = "25000" />