Merge pull request #9990 from inietov/fixes/cannot_upload_files_to_assets

Fixed #9440 Change condition to return the actual max upload size allowed to files
This commit is contained in:
snipe 2021-08-25 13:39:23 -07:00 committed by GitHub
commit e21b21fbde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -890,7 +890,8 @@ class Helper
// If upload_max_size is less, then reduce. Except if upload_max_size is
// zero, which indicates no limit.
$upload_max = Helper::parse_size(ini_get('upload_max_filesize'));
if ($upload_max > 0 && $upload_max < $max_size) {
if ($upload_max > 0 && $upload_max < $post_max_size) {
$max_size = ini_get('upload_max_filesize');
}
}