diff --git a/app.php b/app.php index 23cc614..824ade5 100644 --- a/app.php +++ b/app.php @@ -27,10 +27,7 @@ $f3->route('POST /upload', return false; } - if($file['size'] > (20 * 1024 * 1024)) { // if bigger than 20 MB - return false; - } return true; }, true, function($fileBaseName, $formFieldName) use (&$fileName) { $fileName = $fileBaseName; @@ -79,10 +76,6 @@ $f3->route('POST /image2svg', return false; } - if($file['size'] > (20 * 1024 * 1024)) { // if bigger than 20 MB - - return false; - } return true; }, true, function($fileBaseName, $formFieldName) use ($f3) {