X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ffile-upload.html;h=f69df343c566928d402056c0d7570965be601486;hp=7e2eeefcd7efe7382b5b7d6a3b385d08c985a70d;hb=ff27c3f36240aee48ed50153dd5d8fe3ac3f2443;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2 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 %> +% } % }