jquery.fileDownload icon indicating copy to clipboard operation
jquery.fileDownload copied to clipboard

Chrome and PDF's not playing nice

Open itisnot-me opened this issue 8 years ago • 1 comments

since piggy backed this on another I thought that I should just make a new one: https://github.com/johnculviner/jquery.fileDownload/issues/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.

itisnot-me avatar May 29 '16 21:05 itisnot-me

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.

veenarm avatar Aug 16 '16 11:08 veenarm