Friday, December 25, 2009

How to change the maximum upload file size in ASP.NET


In many Application we need to increase the maximum upload file size in ASP.NET,
to do this just Insert
<httpRuntime maxRequestLength="XXXX" /> within
<system.web> and </system.web>

where XXXX is the file size in KB e.g: 1024 KB = 1 MB

The default is 4096 (= 4 MB).
and here is a sample:



<system.web>
          <httpRuntime maxRequestLength="10240/>
</system.web>




Thanks,

No comments:

Post a Comment