From aee593e63c80513e319d9599fd7cd627d9008687 Mon Sep 17 00:00:00 2001 From: Ariel Backenroth Date: Sun, 8 Oct 2006 00:45:23 +0000 Subject: [PATCH] porting create form wizard to IE. IE wants form.encoding rather than form.enctype. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4060 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../configure-template-output-methods.jsp | 2 ++ source/web/jsp/wcm/create-form-wizard/details.jsp | 15 +++------------ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/source/web/jsp/wcm/create-form-wizard/configure-template-output-methods.jsp b/source/web/jsp/wcm/create-form-wizard/configure-template-output-methods.jsp index b29921d4e0..c2256abf92 100644 --- a/source/web/jsp/wcm/create-form-wizard/configure-template-output-methods.jsp +++ b/source/web/jsp/wcm/create-form-wizard/configure-template-output-methods.jsp @@ -30,6 +30,8 @@ { el.form.method = "post"; el.form.enctype = "multipart/form-data"; + // for IE + el.form.encoding = "multipart/form-data"; el.form.action = "<%= request.getContextPath() %>/uploadFileServlet"; el.form.submit(); return false; diff --git a/source/web/jsp/wcm/create-form-wizard/details.jsp b/source/web/jsp/wcm/create-form-wizard/details.jsp index cb247a8f03..39d5700294 100644 --- a/source/web/jsp/wcm/create-form-wizard/details.jsp +++ b/source/web/jsp/wcm/create-form-wizard/details.jsp @@ -37,24 +37,15 @@ function validate() { -// if (finishButtonPressed) -// { -// finishButtonPressed = false; -// return validateName(document.getElementById("wizard:wizard-body:file-name"), -// '', -// true); -// } -// else -// { -// return true; -// } return true; } function upload_file(el) { el.form.method = "post"; - el.form.enctype = "multipart/form-data"; + el.form.encType = "multipart/form-data"; + // for IE + el.form.encoding = "multipart/form-data"; el.form.action = "<%= request.getContextPath() %>/uploadFileServlet"; el.form.submit(); }