The system fixes the not usable max size setting:
PHP:
// Fix upload_max_filesize_mb if needed
$ini_upload_max_filesize = G\get_ini_bytes(ini_get('upload_max_filesize'));
$ini_post_max_size = ini_get('post_max_size') == 0 ? $ini_upload_max_filesize : G\get_ini_bytes(ini_get('post_max_size'));
Settings::setValue('true_upload_max_filesize', min($ini_upload_max_filesize, $ini_post_max_size));
if (Settings::get('true_upload_max_filesize') < G\get_bytes(Settings::get('upload_max_filesize_mb') . 'MB')) {
Settings::update([
'upload_max_filesize_mb' => G\bytes_to_mb(Settings::get('true_upload_max_filesize')),
]);
}
To allow uploads of 32MB, you need to alter: ini post_max_size, ini upload_max_filesize. The system does this check because uploads will fail if both settings are below your configured value.
In case you missed the docs:
https://chevereto.com/docs/requirements
Code:
upload_max_filesize = 20M;
post_max_size = 20M;
max_execution_time = 30;
memory_limit = 512M;