X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ffile-upload.html;h=f69df343c566928d402056c0d7570965be601486;hb=ded6a5654efd56d2f271970c992133600e0223b1;hp=7e2eeefcd7efe7382b5b7d6a3b385d08c985a70d;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git diff --git a/httemplate/elements/file-upload.html b/httemplate/elements/file-upload.html index 7e2eeefcd..f69df343c 100644 --- a/httemplate/elements/file-upload.html +++ b/httemplate/elements/file-upload.html @@ -47,6 +47,11 @@ } } +<&| onload.js &> +// force the form to submit as multipart +var thisform = document.getElementById('uploaded_files').form; +thisform.enctype = 'multipart/form-data'; + @@ -54,10 +59,15 @@ % foreach (@field) { +% if($param{'no_table'}) { + <% shift @label %> +% } +% else { <% shift @label %> +% } % }