• Thank You if anyone can help me.

    I have on a WordPress Page a pdf file that I allow users to either read on screen or download to their local pc. This code has existed on my page for three years and, all of a sudden, clicking on the link states, “Nothing Found”. No changes occurred in my File hierarchy. Was this caused by a recent WordPress update? More importantly, can someone please advise me how to change the code? The File Name is Feb_2016 and the hierarchy looks perfect to me. The link that the user sees is: Down . What’s up with this?

    Feb 2016 [download label=”(Down)”] https://www.rlugnynj.com/wp-content/uploads/Feb_2016.pdf [/download]?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The PDF exists… it’s probably just a problem in how it’s rendering with that “download” shortcode. I never actually heard of that shortcode… maybe something broke with the tool that uses it? Maybe a plugin.

    At any rate… you could add this to your page to get the same effect (I assume):

    <a href="https://www.rlugnynj.com/wp-content/uploads/Feb_2016.pdf">(Down)</a>

    Does that work for you?

    Thread Starter BigDDDD

    (@bigdddd)

    Sorry, Keith,

    I already have this code to allow the user to read the file on screen. What I am failing at is that the code makes a 2nd link with the ability to download and SAVE IT on your pc.

    The code under what I currently use is this:
    Feb 2016 [download label=”(Down)”] https://www.rlugnynj.com/wp-content/uploads/Feb_2016.pdf [/download]?

    Thanks again.

    Ahhh… I see.

    Makes sense.

    I think what’s happening is that the shortcode [download]… whatever Plugin is controlling it… maybe it was deactivated or changed somehow?

    My guess is what it’s probably doing is… linking to a PHP file… where it sets the “headers” to force a download of the PDF. It’s simple enough to create the PHP file to do that…but… it’s probably best to try and sort out what is controlling that [download] shortcode to see if it can be fixed.

    Another idea I read about is to do something like this which works it most modern browsers:

    <a href="https://www.rlugnynj.com/wp-content/uploads/Feb_2016.pdf" download>(Down)</a>

    And as a workaround, you can put something like (right-click and click Save As… to download) next to the link.

    That’s all I’ve got to offer for this issue…

    Have a good one!

    • This reply was modified 8 years, 2 months ago by Keith Lock. Reason: spelling
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Downloading a pdf file in my File Manager’ is closed to new replies.