Results 1 to 4 of 4

Thread: Permitting file downloads from my website

  1. #1
    Join Date
    Jun 2009

    Permitting file downloads from my website

    I have an Ada code file on my website that I wish visitors to be able to save to their own machines.

    I expected this to work:
    <A HREF="ftp://./ada/functions.adb">Functions.adb</A>
    but it doesn't.

    It probably sounds pretty simple - but then, so am I - but I can't see what's wrong.

    All help appreciated.

  2. #2
    Join Date
    Aug 2005
    Northampton, UK.
    Doesn't work how? As in the file isn't served?

    Just use http protocol. The browser will see it as an unknown filetype and give the "open/save/cancel" option. (as long as this is acceptable).

    e.g: href="ada/functions.adb" should work fine.


  3. #3
    Join Date
    Jun 2009
    Are you running this web page from your C drive (or any other drive) by any chance?

    If you open the file on your own computer (unless you are using a webserver) it will simply open the ADB file with the appropriate program, since you don't actually need to download anything (it's already on your computer!). If you were to upload it to a webserver though and click the link to it again, you would get a download box.

  4. #4
    Join Date
    Jun 2009

    Thanks folks

    The http thing works a treat.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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