Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: How to make a download link

  1. #1
    Join Date
    Sep 2005
    Location
    Connecticut
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to make a download link

    Hi everyone. I know how to make a normal download, where the user would right click on a link and select 'save target as', but how do you create those links where the user would just click and the dialog box would appear saying 'would you like to open or save this file?'.
    Any help would be appreciated.

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Make the server present it as application/ocetet-stream , and I think that the browser will then always prompt.

    cr3
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Except IE, which thinks it knows better than the server and tries to guess by the file content.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Sep 2005
    Location
    Connecticut
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thx!-

  5. #5
    Join Date
    Oct 2005
    Location
    england
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    also winzip the folder and link it when clicked it will prompeted to download

  6. #6
    Join Date
    Oct 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    what you can do is creat a link to a zipped folder of wich containest the file or even not a zipped file in some cases

  7. #7
    Join Date
    Oct 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    wait im confused

    do what to the sever for the whoosywhatsit now?

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Make the server send the Content-Type header as application/octet-stream for that file. This can be done by altering the webserver's configuration.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Oct 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    um...okay....

  10. #10
    Join Date
    May 2006
    Location
    Sydney, Australia
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have no idea what the hell your talking about. Can u be a bit more specific for us that are not technies?? Would like to be able to create a downloadable link also, you know the one where u click it & the dialog box appears. Cannot seem to understand what u mean in your replies. Much appreciated. Ta

Bookmarks

Posting Permissions

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