Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

more on permission denied error when uploading to another site via an iframe#441

Closed
gammons wants to merge 2 commits into
blueimp:masterfrom
gammons:master
Closed

more on permission denied error when uploading to another site via an iframe#441
gammons wants to merge 2 commits into
blueimp:masterfrom
gammons:master

Conversation

@gammons

@gammons gammons commented Jun 27, 2011

Copy link
Copy Markdown

Related to my original issue:

Permission denied error when uploading to another site via an iframe (IE8)

iframe.contents() appears not to be enough to raise an exception in FF. An error will be raised when the code eventually calls text() to get whatever the response was. Explicitly calling iframe.text() will raise the permissions error.

Also, the response I'm sending to jquery-file-upload is either JSON or an empty response. As such, iframe.text() raises an error on line 139 or jquery.iframe.js.

Please let me know your thoughts, and I'll upload the wiki for sending documents direct to S3.

@blueimp

blueimp commented Jun 29, 2011

Copy link
Copy Markdown
Owner

Grant, thanks again for your report.
I've commited an update to the Iframe Transport plugin that unifies the response for cross-domain iframe uploads as undefined: 046dd90
Using any of the converter methods (iframe to text, iframe to json, etc.) will now properly throw a parsererror on all browsers and result in the plugin calling the fail callback instead of the done callback.
If you want to avoid the parsererror, you can set the dataType option to null.

@blueimp blueimp closed this Jun 29, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants