Solved

In Chrome, why do some PDFs just go into the downloads tray?

Posted on 2014-09-03
5
123 Views
Last Modified: 2014-09-03
Some pdf files display immediately in Chrome (e.g. http://www.budget.gov.au/2014-15/content/bp2/download/BP2_consolidated.pdf).

Other pdf files go into the downloads tray (e.g. ofm.mq.edu.au/PDF/map_colour.pdf).

Is there a reason for this?
0
Comment
Question by:GrahamDLovell
  • 3
  • 2
5 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40302463
Yes, the web site can code the link as a download instead of a simple link that will open in Chrome.
0
 

Author Comment

by:GrahamDLovell
ID: 40302725
How do you code the link as a download?
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40302741
You have to do that one the server where you can set the response headers.  This page http://webdesign.about.com/od/php/ht/force_download.htm shows one way to do it with PHP.  You can't do it with just HTML because you can't set the headers for the file.
0
 

Author Closing Comment

by:GrahamDLovell
ID: 40302751
Thanks.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40302765
You're welcome, glad to help.  Just for giggles, I used that method on one of my pages... http://www.dibsplace.com/webdev/index.html .  Look for the two different links for Web Design Outline.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Bada platform is becoming more and more famous this days and people talking about same. Some friends included those who have bada OS mobile asked me "what is bada?"and "what its features?". That encouraged me to research and write this article. [st…
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question