You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2010/08/31 18:32:01 UTC

svn commit: r991233 - /tapestry/tapestry5/trunk/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js

Author: hlship
Date: Tue Aug 31 16:32:01 2010
New Revision: 991233

URL: http://svn.apache.org/viewvc?rev=991233&view=rev
Log:
TAP5-1118: Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request

Modified:
    tapestry/tapestry5/trunk/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js

Modified: tapestry/tapestry5/trunk/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js?rev=991233&r1=991232&r2=991233&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js (original)
+++ tapestry/tapestry5/trunk/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js Tue Aug 31 16:32:01 2010
@@ -18,5 +18,8 @@
  */
 Tapestry.Initializer.injectedUpload = function(element)
 {
-    $(element).form.enctype = "multipart/form-data";
+	var form = $(element).form;
+	  
+    form.enctype = "multipart/form-data";
+    form.encoding = "multipart/form-data"; 
 }
\ No newline at end of file