Modify Maximum Attachment Size

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 paramter 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>
    • Related Articles

    • Modify Email Template for New User and Password Reset

      Additionally, emails are also sent when a new user is created or when a user's password is reset. To change these templates you need the mailtemplate tool, because the configuration is not directly integrated into aqua. You can download it here, ...
    • Server parameters

      In this topic you will find some server parameters, which can be added to configure your server more individually. To add one of these you will need to open the Web.config, which can be found by default here: C:\Programm Files\andagon GmbH\aqua for ...
    • Element properties

      Every element in an aqua report has a set of properties that determine its appearance and the actions taken when the element fires an event. An event fired by an element can be “Before Print”, “After Print”, “Size Changed”, or “Text Changed”, for ...
    • Element Properties

      Every element in an aqua report has a set of properties that determine its appearance and the actions taken when the element fires an event. An event fired by an element can be “Before Print”, “After Print”, “Size Changed”, or “Text Changed”, for ...
    • Creating a Dashboard

      To create a dashboard click on New dashboard on the left hand side. Now, choose a name for you new dashboard. On the top right, you can find settings for your dashboard.   Button Function Mark dashboard as favorite Change size of widgets Add widget ...