max File size can upload to ASp.net servers

- default upload file size if 4MB
- To increase it, please use this below section in your web.config
- Max value to upload : 2,147,483,647 = 2GB

<configuration>
    <system.web>
        <httpRuntime maxRequestLength="2147483647" />
    </system.web>
</configuration>
<configuration>
    <system.web>
        <httpRuntime maxRequestLength="2147483647" />
    </system.web>
</configuration>
  1. <code>
  2. <configuration>
  3. <system.web>
  4. <httpRuntime maxRequestLength="2147483647" />
  5. </system.web>
  6. </configuration>
  7. </code>
<code>
<configuration>
    <system.web>
        <httpRuntime maxRequestLength="2147483647" />
    </system.web>
</configuration>
</code>

- Max value to upload: 4,294,967,295 = 4GB
- you can upload Files more than 2GB use below code :

<system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="4294967295" />
      </requestFiltering>
   </security>
 </system.webServer>
<system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="4294967295" />
      </requestFiltering>
   </security>
 </system.webServer>
  1. <code>
  2. <system.webServer>
  3. <security>
  4. <requestFiltering>
  5. <requestLimits maxAllowedContentLength="4294967295" />
  6. </requestFiltering>
  7. </security>
  8. </system.webServer>
  9. </code>
<code>
<system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="4294967295" />
      </requestFiltering>
   </security>
 </system.webServer>
</code>

Popular posts from this blog

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=xx.0.0.0, Culture=neutral, PublicKeyToken='xxx' or one of its dependencies.

C# Crop white space from around the image

The specified version string contains wildcards, which are not compatible with determinism.