Wednesday, February 20, 2008

Change the maximum file upload size supported by ASP.NET

Indicates the maximum file upload size supported by ASP.NET. This limit can be used to prevent denial of service attacks caused by users posting large files to the server. The size specified is in kilobytes. The default is 4096 KB (4 MB).

Add this code to webconfig
==========================

system.web
httpRuntime maxRequestLength="2097151" executionTimeout="3600"
system.web

1 comment:

Fabio Murillo said...

great idea... you rocks