mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Change condition to return the actual max upload size allowed to files
This commit is contained in:
parent
36ddc7dea7
commit
137f55e4ce
|
@ -890,7 +890,8 @@ class Helper
|
||||||
// If upload_max_size is less, then reduce. Except if upload_max_size is
|
// If upload_max_size is less, then reduce. Except if upload_max_size is
|
||||||
// zero, which indicates no limit.
|
// zero, which indicates no limit.
|
||||||
$upload_max = Helper::parse_size(ini_get('upload_max_filesize'));
|
$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');
|
$max_size = ini_get('upload_max_filesize');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue