5_2:error_when_uploading_large_files

KB0009004 Error When Uploading Large Files

Symptom

You can't upload or view a large file. You may get an error such as:

The request Failed with HTTP status 404: Not Found 

or

Error Message: There was an exception running 
the extensions specified in the config file. 
Maximum request length exceeded.

Cause and Solution

The IIS webserver is set to limit the size of requests, including file uploads and downloads. This is to protect the network and server in shared environments, and is configurable. The configuration depends on which version of IIS is in use.

By default, IIS sets a maximum content length in bytes. To change this you will need to edit the web.config file for the PIAB web application.

  1. On the server, go to the web application folder e.g.
    Program Files\PROJECT in a box professional\piabws
  2. Edit the file 'web.config'

Find, or add, the following sections within '<configuration>' section, to increase the limit to e.g. 100MBytes…

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



<system.webServer>
  <security>
    <requestFiltering allowDoubleEscaping="true">
       <requestLimits maxAllowedContentLength="100000000"/>
    </requestFiltering>
  </security>
</system.webServer>
5_2/error_when_uploading_large_files.txt · Last modified: 2019/03/02 17:14 (external edit)