View Full Version : File upload with document.domain set

15 Nov 2010, 11:54 AM
I have to set document.domain to a specific value in order to implement some comet.

All Iframes on the page go rogue after that, since they expect document.domain to be explicitly set now.
And that's what breaks Ext form file uploading.

I'm sure some else had to have this issue and as far as I can tell there's no way to set the param when creating an Iframe.

Would really appreciate any feedback

7 Jun 2011, 4:07 AM
I've made a bug report about this, which also includes the workaround I currently use. Basically the trick is for uploads to send an extra parameter with the page's domain, and then in the response body add an extra script tag in the header to set the document's domain.


12 Jul 2011, 1:17 AM
According to this reference

we can only update the sub-domain. it does not work for complety different domain.