--- a/web/data/cubicweb.edition.js Wed Sep 09 14:38:50 2009 +0200
+++ b/web/data/cubicweb.edition.js Wed Sep 09 15:07:58 2009 +0200
@@ -255,6 +255,11 @@
updateInlinedEntitiesCounters(rtype);
reorderTabindex();
form.trigger('inlinedform-added');
+ // 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');
+ }
postAjaxLoad(dom);
});
d.addErrback(function (xxx) {