diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index 831b0f50f04..a0fa92ad207 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -316,6 +316,7 @@ class FormFile
if ($nooutput) {
return $out;
} else {
+ print $out;
return 1;
}
}