Skip to content

File Uploads#

This section describes how to adequately adjust the system for file uploads such as Attachments or Document uploads.

Starting in ASP.NET Core 2.0.0, both Kestrel and HttpSys (HTTP server implementations) will be enforcing a 30 MB max request body size limit.

If the request body size exceeds the configured max request body size limit, the call to Request.Body.ReadAsync will throw an IOException. If this exception is uncaught, Kestrel will respond with a 413 Payload Too Large response and HttpSys will respond with a generic 500 Internal Server Error response.

In order to allow configuring the request body size when uploading attachments or documents to the system a configuration entry named /Cmf/System/Configuration/Attachments/MaxFileSize was created to allow the user to define in MB the maximum body size. The default value for this configuration is 100 MB.

Warning

After changing this configuration, reboot the system for the new value to take effect.