Social Icons

Pages

Saturday, November 21, 2015

Upload Large Files in ASP.NET - Application Level

1. Modify the maxRequestLength and executionTimeout in the web.config
    <system.web>
      <httpRuntime maxRequestLength="102400" executionTimeout= "3600" />
    </system.web>

The configuration, allowing uploads of files up to 100MB and upload periods up to 1 hour

2. Modify the maxAllowedContentLength setting in the web.config
        <system.webServer>
      <security>
        <requestFiltering>
          <requestLimits maxAllowedContentLength="2147483648" />
        </requestFiltering>
      </security>
    </system.webServer>
References:
http://docs.telerik.com/devtools/aspnet-ajax/controls/upload/uploading-files/uploading-large-files
http://ajaxuploader.com/large-file-upload-iis-asp-net.htm