Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

html code pdf

  • 20-06-2013 12:23AM
    #1
    Registered Users, Registered Users 2 Posts: 210 ✭✭


    I have a pfd file I would like people to download, what html code should I use?

    I did this

    <a href="download.pdf" target="_blank"> form </a>

    But when I press this on my site It gose to a "page not found"

    Im using wordpress and put the pdf file in the public.html folder with ftp.

    Should this be an other folder?


Comments

  • Registered Users, Registered Users 2 Posts: 4,082 ✭✭✭sheesh


    I notice that you have no folder specified in your link if you uploaded it with wordpress it probably put it into a folder use ftp program or the file viewer in worpress to find its actual location an use that.

    to test put [websitename]/[foldername/[filename]into a browser window and see if the pdf appears.


  • Registered Users, Registered Users 2 Posts: 10,240 ✭✭✭✭Fanny Cradock


    As sheesh has already said, you have to specify where that file is.

    What your link is doing is (sort of) the like the following conversation:

    Tourist: I'm looking for Saint Stephen's Green. Do you know where it is?
    Local: Sure, all you need to do is go to Saint Stephen's Green.
    Tourist: Whaaa?

    The href="" part of your link has to specify exactly where the file is located just like the Local needed to specify exactly where Saint Stephen's Green is.

    So if your file, myfile.pdf, is in a folder called pdfs which itself is in a folder called downloads you would have a file path that would be something like:

    http:// mysite.ie/downloads/pdfs/myfile.pdf


Advertisement