X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ffile-upload.html;h=f69df343c566928d402056c0d7570965be601486;hp=023bffb1eee5fd976035e7d757dea2e875e55831;hb=ff27c3f36240aee48ed50153dd5d8fe3ac3f2443;hpb=5da73ac30a52234cc126ead03cddaf5a4e131019 diff --git a/httemplate/elements/file-upload.html b/httemplate/elements/file-upload.html index 023bffb1e..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 %> + <% shift @label %> +% } % }