The maxAllowedContentLength setting is specific to file uploads in IIS 7.0 and later. This setting allows the Mobile Applications Broker 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 7.0 and later. To allow users to upload files that exceed the default request limit, you must complete the steps below, keeping the following in mind:
-
The maxAllowedContentLength must be updated in both the Mobile Applications Broker Server and the Application Server's Web.config files.
-
The Application Server's setting may need to be larger than the Mobile Applications Broker Server's because the request sent to the Application Server is larger than the request sent to the Mobile Applications Broker Server. See the following point.
-
Request size does not mean file size. When a file is sent from the OnBase Mobile Access for iPhone app to the Mobile Applications Broker Server to the Application Server, the request size increases due to encoding. The increase amount varies depending on whether the Mobile Applications Broker Server is using SOAP to communicate with the Application Server. Requests using SOAP are larger than requests sent using Remoting.
-
The maxAllowedContentLength setting doesn't override the maxRequestLength setting, which specifies the Mobile Applications Broker Server's maximum size for a file upload. If you change the maxAllowedContentLength value, you may also need to change the maxRequestLength value to accommodate larger files. The maxAllowedContentLength should exceed the maxRequestLength.
Follow these steps to increase the size of requests that the Mobile Applications Broker Server and Application Server can handle.
- In the Mobile Applications Broker Server's Web.config file, locate the security element, which contains the maxAllowedContentLength setting. Change the maxAllowedContentLength to the appropriate value, in bytes.
- Check the maxRequestLength value to ensure that it accommodates the intended file size and is less than the maxAllowedContentLength value.
- Perform the same steps in the Application Server's Web.config file.