web/data/cubicweb.edition.js
changeset 4252 6c4f109c2b03
parent 4240 6109962761f2
parent 4217 bf2811a17a17
child 4274 4601ba407ed6
--- a/web/data/cubicweb.edition.js	Mon Jan 18 19:05:08 2010 +0100
+++ b/web/data/cubicweb.edition.js	Mon Jan 18 19:21:30 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);
     });