Monday, April 5, 2010

Why upload fails when uploading large files in ASP .NET FileUpload Control

For security reasons, ASP.NET is limited in terms of an uploaded file size. The default maximum file size is 4 MB but this can be changed by modifying the MaxRequestLength attribute of Machine.config's element.

<httpRuntime executionTimeout="240" maxRequestLength="20480" />

No comments:

Post a Comment