maxAllowedContentLength - Application Server - English - Foundation 22.1 - OnBase - external

Application Server

Platform
OnBase
Product
Application Server
Release
Foundation 22.1
License

The maxAllowedContentLength setting allows the Application Server to override an IIS security feature that prohibits requests over 30 million bytes (about 28.6 MB). This request filtering feature is enabled by default in IIS.

Note:

For uploads through the OnBase Web Client, the maxAllowedContentLength in the Application Server's Web.config file must be greater than the anticipated file size. See the Web Server module reference guide for more information.

Note:

This setting does not override the maxRequestLength setting, which applies only to the Web Server. If you increase the maxAllowedContentLength, you may also need to increase the maxRequestLength to accommodate larger files. The maxAllowedContentLength should exceed the maxRequestLength.

To allow users to upload files that exceed the default request limit, complete the following steps:

  1. In the Application Server's Web.config, uncomment the security element, which contains the maxAllowedContentLength setting. To uncomment the element, delete the <!-- and --> from the lines directly above and below it.
  2. Change the maxAllowedContentLength to the appropriate value, in bytes.
  3. Ensure the maxRequestLength accommodates the intended file size and is less than the maxAllowedContentLength.

    Keeping the maxRequestLength less than the maxAllowedContentLength ensures that a logical error message is displayed to users when their upload attempts exceed the maximum file size allowed for upload.

    Note:

    The maxRequestLength setting only applies to the Web Server.

  4. If applicable, perform the same steps in the XML configuration file for the client application.