From 6ef07b93360a43fbb84ff6555b010bd21f121692 Mon Sep 17 00:00:00 2001 From: axeloz Date: Wed, 19 Jul 2017 18:37:10 +0200 Subject: [PATCH] Bugfixing maxFilesize method --- app/Helpers/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/Upload.php b/app/Helpers/Upload.php index 19e3209..b2fb36d 100644 --- a/app/Helpers/Upload.php +++ b/app/Helpers/Upload.php @@ -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]))); } }