html - PDF doesn't load in a object tag -
PDF path This is okay, but the browser does not load the PDF in the object tag.
Response headers:
Accept-Category: Bytes connection: Keep-alive content-attachment: attachment; Filename = 1.pdf Content-Length: 234790 Content-Type: Application / PDF Date: Tue, 28 October 2014 14:26:16 GMT Last modified: Wednesday, July 09, 2014 14:00:55 GMT Server: nginx / 0.7 .67 set-cookie: session id = 1 c 64 bcn 9 5 5 5d d9f 075c 9a ddf 6 f3; Http; Path = /
object code:
object data = "http://example.com/protected/documents/7" type = "application / PDF "& gt; & Lt; P & gt; File: & lt; A href = "protected / document / 7" target = "_ blank" square = "turkques" & gt; / Protected / document / 7 & lt; / A & gt; & Lt; / P & gt; & Lt; / Object & gt;
If I click on the fallback link, then I download the PDF, so the server is working correctly.
So ... any thoughts?
The problem is that content breaks
headers "Attachments" tells the browser to download the file instead of display the inline. If you are able to change the reaction, so that he reads "inline" that will solve the problem.
Comments
Post a Comment