Thread: ftp question

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Location
    Australia
    Posts
    10
    Rep Power
    0

    ftp question


    I'm trying to create a link to download document template (with .dot extension), with the click on the link save the file on the local computer, as follows:

    <a href="ftp://somewhere/file.dot">document template</a>

    when the link is clicked, the content of the file is displayed on the browser instead of saving the file. What's wrong?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    200
    Rep Power
    14
    Plugins override downloads.

    So what does this mean? Well, since your browser recognizes the .dot extension it will show the document in your browser window instead of allowing you to download it.

    Workaround is creating a zip file.

    You can even leave out the ftp part.
    A normal <A HREF="doctemp.zip">Template</A> should work.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Location
    New Zealand
    Posts
    167
    Rep Power
    14

    just a thought...


    You could always specify in the instructions to right-click over the <a href="template.dot">Template</a> link and select 'Save Target As', which will save the file to a specified location on the client's machine.

    Jen
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Location
    Australia
    Posts
    10
    Rep Power
    0
    Thanks phreq. That's a good idea!

IMN logo majestic logo threadwatch logo seochat tools logo