When uploading a file, dwr clones the input field, attaches it to a form and submits to the server.
The cloned field should replace the original one.
This is done by
value.parentNode.insertBefore(clone, value);
value.parentNode.removeChild(value);
in engine.js.
The problem is, that I use Ext.ux.form.BrowseButton to create my input field. (
http://extjs.com/forum/showthread.php?t=29032)
This function detaches the input form and puts it somewhere in the dom.
It happens that my field does not have a parentNode when it is posted.
So i would suggest to check for a parentNode, just like:
if(value.parentNode != null) {
value.parentNode.insertBefore(clone, value);
value.parentNode.removeChild(value);
}
and everything works also if the element had no parent.