diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 3505f9d7371..74f190074b6 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -495,17 +495,18 @@ class FormFile $out.= ''."\n"; if (! $iconPDF) { + $size=(! empty($file['size'])?$file['size']:dol_filesize($filedir."/".$file["name"])); + $date=(! empty($file['date'])?$file['date']:dol_filemtime($filedir."/".$file["name"])); $out.= ''; // Show file size - $out.= '