diff --git a/htdocs/admin/security_other.php b/htdocs/admin/security_other.php index 0044e050c86..7d02153857d 100644 --- a/htdocs/admin/security_other.php +++ b/htdocs/admin/security_other.php @@ -51,6 +51,12 @@ if ($_POST["sendit"] && ! empty($conf->global->MAIN_UPLOAD_DOC)) $mesg = '
'.$langs->trans("FileTransferComplete").'
'; //print_r($_FILES); } + else if (is_numeric($resupload) && $resupload == -99) + { + // Echec transfert (virus ?) + $mesg = '
'.$langs->trans("ErrorFileIsInfectedWith"); + $mesg.= '
'; + } else { // Echec transfert (fichier depassant la limite ?)