How to increase the upload file length limit in ASP.NET






3.40/5 (5 votes)
How to increase the upload file length limit in ASP.NET
Generally, the uploading limit of ASP.NET
FileUploader
is 4MB. But you can increase the limit of length of uploaded file by using the following code into your web.config file in your website.
<httpruntime maxrequestlength="20480" executiontimeout="600">
</httpruntime>
You have to add this tag after the system.web
of your web.config file...
If you want to increase the upload limit more than 20MB, then you have to change both the value of maxRequestLength
in KB and also executionTimeout
.