Fix : accorder l'unité de poids de Bigform (Ko) avec celle configurée dans Bigup (Mo)

This commit is contained in:
cy_altern 2024-03-24 18:58:03 +01:00
parent 826c97f418
commit c45827e51a

View file

@ -102,7 +102,7 @@ function formulaires_editer_post_verifier_dist($id_article=0, $redirect=''){
} }
$bigform = charger_fonction('bigform_verifier','inc'); $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); $largeur_max = (defined('_IMG_MAX_WIDTH') ? _IMG_MAX_WIDTH : 2048);
$hauteur_max = (defined('_IMG_MAX_HEIGHT') ? _IMG_MAX_HEIGHT : 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]; $options = ['mime' => 'tout_mime','taille_max'=> $taille_max, 'largeur_max'=> $largeur_max, 'hauteur_max'=> $hauteur_max];