I'm using Ext's way (Ext.Ajax.request with isUpload set to true). When I remove the "x-hidden" class from the iframe, the XML response is there, so the upload is happening, but the Ajax request response returns empty.

16 May 2009, 2:18 PM

jsakalos

Do you return header "Content-Type: text/html; charset=utf8"? Is the body of response {"success":true}?

17 May 2009, 9:20 AM

aconran

zquirm -

This is a bug in Ext 2.2.1 and has been fixed in SVN. Look for it to be resolved in the next release of Ext 2.x. (2.2.2).

18 May 2009, 10:03 AM

zquirm

Aaron, are there specific files I can copy from the SVN to make this work now? I tried copying the code from Ext.data.Connection to override what's currently there, and I'm still getting an empty response.

18 May 2009, 10:15 AM

aconran

Update src/widgets/form/Action.js

18 May 2009, 10:55 AM

zquirm

I'm still getting an undefined response.

Aaron, looking at this "bug fix" from the forum thread you attached, it looks like this function has been changed in Ext.form.Action:

The problem I'm having is that the "response" argument of this function is returning an object with responseText as empty and responseXML as undefined.

Which takes me back to the cb() function in Ext.data.Connection.doFormUpload, written out in the first post above, which is telling me that frame.contentDocument and window.frames[id].document do not exist.

I'm using the Scribd API to upload a document, which is working (the document does upload), and this is the iframe's response: