X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ffile-upload.html;h=f69df343c566928d402056c0d7570965be601486;hp=c8b026d045b829de19dbc63763830afe277cdabd;hb=04f53daab621710db56b075e1aaf56e7c52f9ba9;hpb=63ec397ccea7b71f6ae9b77db7f905c1a56d430d diff --git a/httemplate/elements/file-upload.html b/httemplate/elements/file-upload.html index c8b026d04..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 %> +% } % }