web/data/cubicweb.edition.js
branchstable
changeset 4217 bf2811a17a17
parent 3947 8d06bce45c02
child 4252 6c4f109c2b03
child 4271 dfee17fa363f
--- a/web/data/cubicweb.edition.js	Fri Jan 08 12:17:42 2010 +0100
+++ b/web/data/cubicweb.edition.js	Fri Jan 08 18:20:03 2010 +0100
@@ -258,7 +258,10 @@
         // if the inlined form contains a file input, we must force
         // the form enctype to multipart/form-data
         if (form.find('input:file').length) {
-            form.closest('form').attr('enctype', 'multipart/form-data');
+	    // NOTE: IE doesn't support dynamic enctype modification, we have
+	    //       to set encoding too.
+            form.closest('form').attr('enctype', 'multipart/form-data')
+		.attr('encoding', 'multipart/form-data');
         }
         postAjaxLoad(dom);
     });