Nezir Zahirović

ASP.NET Increasing a upload file size lenght for FileUpload Control

If you ever need to do uploading a file with asp.net FileUpload control, file that had size over 4 mb , you will get some errors and most probably problem is with file size. So, we need to make some changes in Web.Config file. Here is default upload file size limit 4096 Kb . Our job to fix that error is to change limit size to fit file upload size and we do that with simply changing a 4096 Kb to our desired size .

EXAMPLE
web.config file
xml version="1.0" encoding="UTF-8" ?>
<configuration>
<configSections>
<system.web>
<httpRuntime
executionTimeout="
90"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
/>
system.web>
configSections>
configuration>
SHARE