mirror of
https://github.com/axeloz/filesharing.git
synced 2025-05-06 10:03:55 +02:00
Bugfixing maxFilesize method
This commit is contained in:
parent
d812e2f391
commit
6ef07b9336
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class Upload {
|
||||||
$size = preg_replace('/[^0-9\.]/', '', $v);
|
$size = preg_replace('/[^0-9\.]/', '', $v);
|
||||||
if ($unit) {
|
if ($unit) {
|
||||||
// Find the position of the unit in the ordered string which is the power of magnitude to multiply a kilobyte by.
|
// 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])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue