1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-06-04 23:12:25 +02:00

La limite de taille d'upload est déjà régulé par PHP

This commit is contained in:
Vincent LAURENT 2021-11-11 09:32:56 +01:00
parent 57b8d8d973
commit 9ae3a63551

View file

@ -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) {