Submit Your Article Forum Rules

Results 1 to 5 of 5

Thread: File downloads

  1. #1
    Junior Member
    Join Date
    Dec 2005
    Posts
    23

    Question File downloads

    I want to force a file download when the user clicks on the link, and not have it open in the default program. I have an .mp3 download that I WANT as a download, and not played when clicked.
    I want to try to idiot-proof the link for those that would not bother to read instructions such as "right-click and select 'saveAs'"

    Can this be done?
    Ron

  2. #2
    WebProWorld MVP incrediblehelp's Avatar
    Join Date
    Jan 2004
    Posts
    7,567

    Re: File downloads

    Yeah, but you should not do this as it forcing any sort of download can be construed as bad thing. If you want music to play when the user gets to a page, their are many other ways to do this.

  3. #3
    Junior Member
    Join Date
    Dec 2005
    Posts
    23

    Re: File downloads

    But here is my concern: The .mp3 is tied in with a special promotion that is going to be running on the site. I have a licence from the publisher to be able to give away a certain number of downloads. Therefore, I want the visitors when they get to the page to download the song. I do not want it to be played in the browser. I feel that if people are able to listen to the file in their browser, then they just may revisit the page several times to listen to the song, and use up my allotted number of free downloads unnecessairly. While I know someone could get multiple downloads, I think the liklihood of this happening is much less than if they were able to play the song in their browser. Also, I might be logging IP addresses to prevent multiple downloads (depending on the customer's wishes) and if someone just listens to the song when they wanted to download it, they would be upset when they are told they cannot access the file again. The target demographic is an older age, so I must assume that they would not understand about retrieving a file from their browser cache.
    I just feel that forcing the e"Do you want to open this file, or save it" box so the user can control this choice, and then choose save to open the "Save as" dialogue box, over allowing the media player to play the file in the browser, is the best thing that I can do given the situation.

  4. #4
    WebProWorld MVP incrediblehelp's Avatar
    Join Date
    Jan 2004
    Posts
    7,567

    Re: File downloads

    Why not do the proper thing and create a page that convinces the users to download the song instead of trying to trick them into downloading it automatically?

  5. #5

Similar Threads

  1. CSV File Downloads in IE8
    By 1dmf in forum Web Programming Discussion Forum
    Replies: 10
    Last Post: 11-24-2009, 02:49 PM
  2. Reach Metrics on File Downloads?
    By musicmmh23 in forum Content Discussion Forum
    Replies: 3
    Last Post: 06-28-2007, 05:56 AM
  3. How to converter video file into a flash file ,with effect?
    By andy_lucky in forum Flash Discussion Forum
    Replies: 0
    Last Post: 04-04-2006, 11:37 AM
  4. Windows 2000 Slow with File Open and File Save Dialog Boxes
    By steve0 in forum IT Discussion Forum
    Replies: 2
    Last Post: 09-15-2005, 05:27 PM
  5. Blocking graphic file right-click downloads
    By Sereniti in forum Web Programming Discussion Forum
    Replies: 50
    Last Post: 11-08-2003, 03:23 PM

Posting Permissions

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