Solved

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

Posted on 2014-09-03
5
120 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 82

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 82

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 82

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now