www.webdeveloper.com
Results 1 to 7 of 7

Thread: to download - terminology

  1. #1
    Join Date
    Feb 2005
    Posts
    76

    to download - terminology

    Hi,

    I am a bit confused and wondered if someone out there could set me straight .

    I have a client who wants an audio clip (wav file) put on his site. No problem there. But he asked that a viewer be able to download it to listen to it if they wanted.

    Do you have to do something special to make a file downloadable? When a person clicks on the link, aren't they basically downloading it to listen to it?

    If you do need to set the link up differently to allow a person to "download" it to listen at a later date, how is this done?

    Thanks,
    Sarb

  2. #2
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    If the browser recognises the file type then the browser will process the file itself rather than offering the file for download. Files offered for download can be saved to where ever you choose or opened and processed by any program on your computer. Those not offered for download are downloaded to the browser cache and processed by the browser itself making it harder for the less computer literate to actually save a permanent copy or run it in a different program.
    Stephen

  3. #3
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    You can just put a link to it. If they click it and are set up as Stephen describes then they'll play it. If not then they'll download it and play it from there. In either case they can right-click the link and choose to save it rather than play it.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  4. #4
    Join Date
    Feb 2005
    Posts
    76
    Thank you for explaining that to me. It is much appreciated..

    Sarb

  5. #5
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    37
    you can also just .zip the file that you want people to download and make a standard link to it. Zip files will always ask to be downloaded to the user's computer.
    So for your client, you may want to have a 'listen now' function that links to the actual file, or a 'download it' function that links to the zip.

  6. #6
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Zip files will always ask to be downloaded to the user's computer.
    "Always" isn't a good word to use when you're totally at the mercy of the user's browser configuration.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  7. #7
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    37
    Quote Originally Posted by ray326
    "Always" isn't a good word to use when you're totally at the mercy of the user's browser configuration.
    *almost always

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



Recent Articles