jquery-iframe-transport icon indicating copy to clipboard operation
jquery-iframe-transport copied to clipboard

Submitting request with Opera prompts file download.

Open zeevallin opened this issue 12 years ago • 2 comments

Version: 11.64 Build: 1403 Platform: Mac OS X System: 10.7.3

When I try to upload the file the browser tries to download the json response as a file.

I respond with:

content type: application/json url: "/v1/users/:id.json"

zeevallin avatar May 23 '12 21:05 zeevallin

It's not the plugin problem. You'd replace the server headers "application/json" with text/javascript

monolithed avatar Dec 10 '12 18:12 monolithed

But it does not solve the problem without setTimeout, like this:

https://github.com/malsup/form/blob/e77e287c8024d200909a7b4f4a1224503814e660/jquery.form.js#L409

monolithed avatar Dec 10 '12 18:12 monolithed