diff --git a/html/launcher.php b/html/launcher.php index 5c036a9..9a3ddc4 100755 --- a/html/launcher.php +++ b/html/launcher.php @@ -419,8 +419,9 @@ if ($type == "upload_firmware") { // Check file upload if (!isset($_FILES['firmware_file']) || $_FILES['firmware_file']['error'] !== UPLOAD_ERR_OK) { + $max_upload = ini_get('upload_max_filesize'); $upload_errors = [ - UPLOAD_ERR_INI_SIZE => 'File exceeds server upload limit', + UPLOAD_ERR_INI_SIZE => "Le fichier depasse la limite serveur (actuellement $max_upload). Effectuez d'abord une mise a jour via WiFi (bouton Update firmware) pour debloquer l'upload hors-ligne.", UPLOAD_ERR_FORM_SIZE => 'File exceeds form upload limit', UPLOAD_ERR_PARTIAL => 'File was only partially uploaded', UPLOAD_ERR_NO_FILE => 'No file was uploaded',