Persits Software, Inc. Knowledge Base Articles

AspUpload Upload Size Limit on IIS7+

Problem Description

When uploading files with AspUpload to Windows 2008+ running IIS 7+, the upload process fails with little or no information about the problem.

Solution

The problem may be related to the requestLimits configuration parameter. The file web.config for your application (or machine.config, if appropriate) needs to be modified as follows:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   ...
   <system.webServer>
      <security>
         <requestFiltering>
            <requestLimits maxAllowedContentLength="524288000" />
         </requestFiltering>
      </security>
   </system.webServer>
</configuration>

The example above sets the upload size limit to 500 MB.