File upload size limit
The maximum file upload site is defined by upload_max_filesize
and post_max_size
in php.ini
. This value can be limited from the maximum value in the application by defining MAX_UPLOAD_FILE_SIZE_BYTES
in constants.xml
. MAX_UPLOAD_FILE_SIZE_BYTES
should be defined as a whole number representing the maximum number of bytes to allow. After setting a value for MAX_UPLOAD_FILE_SIZE_BYTES
you will then need to clear the config cache.
MAX_UPLOAD_FILE_SIZE_BYTES
defines the maximum file size that can be uploaded to:
- the image manager
- the download manager
If MAX_UPLOAD_FILE_SIZE_BYTES
is not defined, the value of upload_max_filesize
in bytes is used.
After updating the configuration file, you will need to clear the application config cache.
Where ModSecurity is in use, you may also need to increase the maximum content-length allowed. To do this edit /etc/httpd/conf.d/mod_security.conf
and increase the value of SecRequestBodyLimit
to a larger number. Save your changes and restart Apache.