From d58a98e1948f4d95be115bb633e18af2f50ad4b8 Mon Sep 17 00:00:00 2001 From: Ariel Backenroth Date: Tue, 9 Jan 2007 14:45:05 +0000 Subject: [PATCH] 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 --- source/web/scripts/upload_helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/web/scripts/upload_helper.js b/source/web/scripts/upload_helper.js index a5f1d9fc08..3cdc4fa4ee 100644 --- a/source/web/scripts/upload_helper.js +++ b/source/web/scripts/upload_helper.js @@ -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";