mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
La limite de taille d'upload est déjà régulé par PHP
This commit is contained in:
parent
57b8d8d973
commit
9ae3a63551
7
app.php
7
app.php
@ -27,10 +27,7 @@ $f3->route('POST /upload',
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if($file['size'] > (20 * 1024 * 1024)) { // if bigger than 20 MB
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}, true, function($fileBaseName, $formFieldName) use (&$fileName) {
|
}, true, function($fileBaseName, $formFieldName) use (&$fileName) {
|
||||||
$fileName = $fileBaseName;
|
$fileName = $fileBaseName;
|
||||||
@ -79,10 +76,6 @@ $f3->route('POST /image2svg',
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if($file['size'] > (20 * 1024 * 1024)) { // if bigger than 20 MB
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}, true, function($fileBaseName, $formFieldName) use ($f3) {
|
}, true, function($fileBaseName, $formFieldName) use ($f3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user