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

Chrome and PDF's not playing nice #122

Open
itisnot-me opened this issue May 29, 2016 · 1 comment
Open

Chrome and PDF's not playing nice #122

itisnot-me opened this issue May 29, 2016 · 1 comment

Comments

@itisnot-me
Copy link

since piggy backed this on another I thought that I should just make a new one: #98

I am still having an issue where it would throw the error: Resource interpreted as Document but transferred with MIME type application/pdf:

The url does resolve but when it goes to download, nothing happens not even a failure to download message. I switched the file name in the DB to something other than a PDF and it down loads without fail.

I am in chrome.

@veenarm
Copy link

veenarm commented Aug 16, 2016

I don't believe that's an issue with the JS - refer to : http://stackoverflow.com/questions/6587393/resource-interpreted-as-document-but-transferred-with-mime-type-application-zip

Try adding: Content-Disposition: attachment; filename=???.pdf
to your header response.

I get the same message at work, when using this js and when not, using ancient struts - but the downloads etc all work fine - might be something wrong with your actual download content.

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