From d2a3eafaa168581123547d7b2167dcfad57be21a Mon Sep 17 00:00:00 2001 From: PaulVua Date: Tue, 17 Mar 2026 19:53:16 +0100 Subject: [PATCH] Upload firmware: message clair si limite PHP trop basse Indique de faire d'abord une mise a jour via WiFi pour debloquer l'upload hors-ligne (la MAJ en ligne corrige la config PHP). Co-Authored-By: Claude Opus 4.6 (1M context) --- html/launcher.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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',