Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submitting request with Opera prompts file download. #10

Open
zeevallin opened this issue May 23, 2012 · 2 comments
Open

Submitting request with Opera prompts file download. #10

zeevallin opened this issue May 23, 2012 · 2 comments

Comments

@zeevallin
Copy link

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"

@monolithed
Copy link

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

@monolithed
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants