Increasing attachments max size limit requires 3 changes be made:

1) maxRequestLength - value is in kilobytes

2) maxAllowedContentLength - value is in bytes

3) Customization - Global Settings -> Attachments max size - value is in megabytes


-----------------------------------------------------------------------

HttpRuntimeSection.MaxRequestLength Property - Gets or sets the maximum request size. This is an ASP.net setting.

-----------------------------------------------------------------------


Enabling and editing request filtering in IIS:

http://www.iis.net/configreference/system.webserver/security/requestfiltering/requestlimits


---------------------------------------------------------------------------------------------------------------

requestFiltering [IIS Settings Schema] - maxAllowedContentLength  attribute Specifies limits on requests processed by the Web server. 

---------------------------------------------------------------------------------------------------------------


NOTE: the IIS default value is 30000000 bytes or ~28.6 MB. Editing the site's (e.g. - EmergencyPro) maximum allowed content length setting will edit the site's web.config value. However, the web.config value can be edited directly. If the desired site value exceeds the default IIS value, edit the IIS value to match the site value.


------------------------------------------------------------------------------

This example will allow handling requests up to 50MB:

-------------------------------------------------------------------------------

<system.web>

    <httpRuntime maxRequestLength="51200" />

</system.web>


<system.webServer>

    <security> 

        <requestFiltering>         

            <requestLimits maxAllowedContentLength="52428800" />

        </requestFiltering>

    </security>

</system.webServer>