fixed a bug with hidden iframe upload. seems like the complexity of actually cloning the file input element is unnecessary and that simply attaching the node in two places within the dom works just fine.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4765 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2007-01-09 14:45:05 +00:00
parent cabab31ec0
commit d58a98e194

View File

@@ -26,7 +26,7 @@ function handle_upload_helper(fileInputElement,
form.enctype = "multipart/form-data";
form.target = iframe.name;
form.action = contextPath + "/uploadFileServlet";
form.appendChild(fileInputElement.cloneNode(true));
form.appendChild(fileInputElement);
var id = document.createElement("input");
id.type = "hidden";