Modify Maximum Attachment Size

To increase the maximum allowed size of attachments, the server parameters must be configured in the server configuration files. The MaximumAllowedAttachmentSizeInBytes parameter sets the maximum size of attachments in aqua. Additionally, depending on the desired size, the limits of the IIS server must also be increased. This can also be configured in the Web.config files of the aqua server.
 
You have to do the following changes in the Web.config file of the application server (default location: "C:\Program Files\andagon GmbH\aqua For IIS\Web\Webservice\Web.config"):
  • Adding the entry MaximumAllowedAttachmentSizeInBytes in the <appSettings> section with the desired attachment size in bytes as value. So for example if you want to have 100 megabytes (MB) as the limit:
     <add key="MaximumAllowedAttachmentSizeInBytes" value="104857600" />
 
  • Modify, or if not available, add the maxRequestLength entry in the <system.web> section to the desired limit (or higher). Note: this time the unit is specified in kilobytes. This sets the maximum total size of requests. If several attachments are to be uploaded in one action, a higher limit has to be chosen accordingly. As an example shown here for 100MB:
    <httpRuntime maxRequestLength="102400" executionTimeout="600" targetFramework="4.7.2" />
     
  • Modify, or if not available, add the maxAllowedContentLength entry in the Bereich <system.webServer><security><requestFiltering> section to the desired limit (or higher). Note: this time the unit is specified in byte. If several attachments are to be uploaded in one action, a higher limit has to be chosen accordingly. As an example shown here for 100MB:
    <system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="104857600" />
            </requestFiltering>
        </security>
    </system.webServer>
 
 
Additionally, in the aquaWebNG server's Web.config file (default location: "C:\Program Files\andagon GmbH\aquaWebNG\aquaWebNG\Web.config") the following changes have to be made:
  • Modify, or if not available, add the maxRequestLength entry in the <system.web> section to the desired limit (or higher). Note: this time the unit is specified in kilobytes. This sets the maximum total size of requests. If several attachments are to be uploaded in one action, a higher limit has to be chosen accordingly. As an example shown here for 100MB:
    <httpRuntime enableVersionHeader="false" maxRequestLength="102400" requestValidationMode="2.0" executionTimeout="110" targetFramework="4.7.2" />
     
  • Modify, or if not available, add the maxAllowedContentLength entry in the Bereich <system.webServer><security><requestFiltering> section to the desired limit (or higher). Note: this time the unit is specified in byte. If several attachments are to be uploaded in one action, a higher limit has to be chosen accordingly. As an example shown here for 100MB:
    <system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="104857600" />
            </requestFiltering>
        </security>
    </system.webServer>