Bugfixing maxFilesize method

This commit is contained in:
Axel 2017-07-19 18:37:10 +02:00
parent d812e2f391
commit 6ef07b9336

View file

@ -61,7 +61,7 @@ class Upload {
$size = preg_replace('/[^0-9\.]/', '', $v);
if ($unit) {
// Find the position of the unit in the ordered string which is the power of magnitude to multiply a kilobyte by.
$values[$k] = round($v * pow(1024, stripos('bkmgtpezy', $unit[0])));
$values[$k] = round($size * pow(1024, stripos('bkmgtpezy', $unit[0])));
}
}