+ Reply to Thread
Results 1 to 5 of 5

Thread: Uploading a downloadable file to my website

  1. #1
    Join Date
    Mar 2009
    Posts
    3

    Default Uploading a downloadable file to my website

    I want to add a download file to my website but am lost.

    I want it to be so that there is a link 'click here to download' and when it is clicked on you get the .zip file download box pop up and start downloading from there.

    Any help appreciated!!

  2. #2

    Default

    Just create a simple link directly to the file you want available for download:

    Code:
    <a href="download.zip">Click here to download</a>
    If the file is in a folder somewhere:
    Code:
    <a href="downloadfolder/download.zip">Click here to download</a>
    ~regards, and welcome
    He is no fool that gives what he cannot keep to gain what he cannot lose. - Jim Elliot
    4ChristMinistry.org - Web development tutorials and Community forum.
    Demos - Kicking the tires on some popular software.

  3. #3
    Join Date
    Mar 2009
    Posts
    3

    Default

    Thank you and thank you, however,I feel really silly but I just can't get my head round this!!

    I've uploaded the file into a folder on the webserver, but from there I'm stuck, how do I know what folder name to put in the

    <a href="downloadfolder/download.zip">Click here to download<a>

    I don't understand how to link the file to the 'click to download' link?!!

  4. #4

    Default

    The folder name you put there is the folder you uploaded your zip file to.

    I have a file named reallycooldownload.zip.

    I upload this file to a folder called downloads.

    This downloads folder is itself inside my public_html directory, where all my other website files are located.

    If I want to put a link to that zip file for others to download, I would use the following code in my HTML page:

    HTML Code:
    <a href="downloads/reallycooldownload.zip">Click here to download</a>
    The "link" you are talking about is the href="" part. What goes between the quotes is the path to the file you want to link to. It can be a webpage, an external website, or any number of documents you want others to be able to download.

    Does that help clear things up a bit?

    ~regards
    He is no fool that gives what he cannot keep to gain what he cannot lose. - Jim Elliot
    4ChristMinistry.org - Web development tutorials and Community forum.
    Demos - Kicking the tires on some popular software.

  5. #5
    Join Date
    Mar 2009
    Posts
    3

    Default

    Very much so, thank you. In my head I was making it far too complicated. Much easier than I thought. Thanks again

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts