Jump to content
Sign in to follow this  
chisim11

How to automatically download a PDF file when clicking on a link?

Recommended Posts

chisim11

Created this page w/boxes> http://tinyurl.com/n3gcn3g

 

I want the user to click on any of the boxes and have a PDF attachement(which I uploaded to library/media) to download right away after the link is clicked. I only uploaded one PDF file to test it (jan 2003 box). Instead when the user clicks on the link, it will go to the attachment ID page, which shows the link> http://tinyurl.com/k6jtxly

 but it is an extra step that I dont need.

 

What am I doing wrong?

 

 

 

 

 

 

post-27875-0-05030300-1370940900_thumb.j

Share this post


Link to post
Share on other sites
Danny

Hi,

 

The box link is doing exactly what you're telling it to, linking to the attachment page because you're using the attachment link.

 

Instead use this link.

http://www.simonchi.com/wp-content/uploads/2013/06/Jan2013Report.pdf

When linking to a file/pdf, you need to use the direct link to that file, and not the attachment link.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
chisim11

ok got it. 

 

Is it safe to say though that the "attachement page" > 

would not be seen when some when someone googlin my name or site?

 

Is there a way to hide this? dont know. just wondering?

Share this post


Link to post
Share on other sites
Rob

Hi Simon

 

Actually, at present, the link is working exactly as it should.  The PDF file opens within the browser (as it should) and the visitor can download the PDF from there.  They won't see anything inappropriate or unsafe for your site.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
chisim11

sounds good. thanks for responding. 

 

Thank you both. sorry unable to provide best answer to both, unless there is a way to do it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×