From c45827e51a9b4ac501ba3281637b32184ea15cb9 Mon Sep 17 00:00:00 2001 From: cy_altern Date: Sun, 24 Mar 2024 18:58:03 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20:=20accorder=20l'unit=C3=A9=20de=20poids?= =?UTF-8?q?=20de=20Bigform=20(Ko)=20avec=20celle=20configur=C3=A9e=20dans?= =?UTF-8?q?=20Bigup=20(Mo)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- formulaires/editer_post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formulaires/editer_post.php b/formulaires/editer_post.php index c5f3356..4a7db6e 100644 --- a/formulaires/editer_post.php +++ b/formulaires/editer_post.php @@ -102,7 +102,7 @@ function formulaires_editer_post_verifier_dist($id_article=0, $redirect=''){ } $bigform = charger_fonction('bigform_verifier','inc'); - $taille_max = lire_config('bigup/max_file_size'); + $taille_max = intval(lire_config('bigup/max_file_size')) * 1000; $largeur_max = (defined('_IMG_MAX_WIDTH') ? _IMG_MAX_WIDTH : 2048); $hauteur_max = (defined('_IMG_MAX_HEIGHT') ? _IMG_MAX_HEIGHT : 2048); $options = ['mime' => 'tout_mime','taille_max'=> $taille_max, 'largeur_max'=> $largeur_max, 'hauteur_max'=> $hauteur_max];