Fix : accorder l'unité de poids de Bigform (Ko) avec celle configurée dans Bigup (Mo)
This commit is contained in:
parent
826c97f418
commit
c45827e51a
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Reference in a new issue