How do I limit the allowed max file attachment size?

Note: This is option for version 7. To limit the allowable size of each file uploaded as an attachment, follow these instructions. When embedding is instructed you may need to add multiple lines in multiple places to maintain the proper syntax of the config file:

  1. Open the OnPremise Manager on your Integrify Application server
  2. Select your application and then choose 'Advanced Configuration' from the second drop-down and click the Run button
  3. Click the pencil icon next to 'webserver-web-config' (x:\integrify\app\webserver\web.config)
  4. Embed the following in the proper place within the file and save it:
    <configuration>
        <system.webServer>
          <security>
             <requestFiltering>
                 <requestLimits maxAllowedContentLength="2147483647" />
             </requestFiltering>
          </security>
       </system.webServer>
    </configuration>
  5. Click the pencil icon next to 'service-config' (x:\integrify\app\service\web.config)
  6. Embed the following in the proper place within the file and save it:
    <configuration>
       <system.web>
          <httpRuntime maxRequestLength="2097152" />
       </system.web>
       <system.serviceModel>
          <bindings>
             <customBinding>
                <binding name="integrifyBinding">
                   <http(s)Transport manualAddressing="true" maxReceivedMessageSize="2147483647"/>
                </binding>
             </customBinding>
          </bindings>
       </system.serviceModel>
    </configuration>
  7. Once those edits have been made, you will need to restart the application from the OnPremise Manager.

Below are links to each parameter and what they do:

  • maxAllowedContentLength - Specifies the maximum length of content in a request, in bytes
  • maxRequestLength - Specifies the limit for the input stream buffering threshold, in KB
  • maxReceivedMessageSize - The maximum size, in bytes, for a message that can be received

 

If you need help adjusting your environment, feel free to contact the technical support team to inquire about utilizing service hours.