FIELD[file] Force PDFs to be viewed within the browser

More
12 years 5 months ago - 12 years 5 months ago #25589 by hede
Is it possible with the FIELD[file] to link directly to a PDF so it will be displayed within the browser rather than be downloaded?
Cheers

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4
Last edit: 12 years 5 months ago by hede.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #25590 by ggppdk
-- In general you cannot force the browser to VIEW the PDF file.
-- This is controlled by browser settings and other browser software installed on the browser

But you can do the opposite force almost ALL browsers to download it, but of course this is not useful to you.

You will need to use some online PDF viewer

Most like you need to search this with Google

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #25603 by hede
Thank you. I know that I can only forsce the download, not the display because that needs a browser plugin. I need to figure out, why FC is forcing the download without my intention. You can see an example here when the Google Chrome Browser is used:
weissneu.jordymedia.de/tactile-sensing-p...ducers/dsa-9205.html
When you click on Product Data Sheet in the DOwnloads section the PDF gets downloaded but when you click on Terms and Conditions in the footer the PDF gets displayed (if a reader plugin is installed). So obviously FC is forcing the download and I need to change this.
Cheers

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #25605 by ggppdk
FLEXIcontent sets a HTTP header that forces download of only unknown file types:
Code:
switch( $ext ) { case "pdf": $ctype = "application/pdf"; break; ...... ...... ...... default: $ctype = "application/force-download"; }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #25611 by hede
I think the problem is that the link to files handled by the field[fiele] are links to an .html page and not to the PDF itself as you can see on my demo page mentioned above. Is it possible to tell FC to link direktly to the file and not to obfuscate the link?
Cheers

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.468 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline