From 984531411d123527f7209eef1e459d74dfe16ae2 Mon Sep 17 00:00:00 2001 From: Marc de Lima Lucio <marc.delimalucio@atm-consulting.fr> Date: Wed, 10 May 2017 15:01:27 +0200 Subject: [PATCH] NEW: permit multiple file upload in linked documents --- htdocs/core/class/html.formfile.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 8d90892cfb6..022579b3a7c 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -126,7 +126,9 @@ class FormFile { $out .= '<input type="hidden" name="max_file_size" value="'.($max*1024).'">'; } - $out .= '<input class="flat minwidth400" type="file" name="userfile"'; + + $out .= '<input class="flat minwidth400" type="file"'; + $out .= (empty($conf->global->MAIN_USE_MULTIPLE_FILEUPLOAD)?' name="userfile"':' name="userfile[]" multiple'); $out .= (empty($conf->global->MAIN_UPLOAD_DOC) || empty($perm)?' disabled':''); $out .= '>'; $out .= ' '; -- GitLab