# HG changeset patch # User Adrien Di Mascio # Date 1262971203 -3600 # Node ID bf2811a17a17b5bcdca0df0b4911ee56d449f63c # Parent 6c9e67a89b3a1fa0f51e7707516f2a7a8f1b5185 [javascript] IE doesn't support dynamic enctype modification, we have to set encoding too diff -r 6c9e67a89b3a -r bf2811a17a17 web/data/cubicweb.edition.js --- 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); });