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];