HTML help

The machines we love to hate

Moderator: Wiz Feinberg

User avatar
Mark Ardito
Posts: 899
Joined: 9 Aug 1999 12:01 am
Location: Chicago, IL, USA

HTML help

Post by Mark Ardito »

OK, on my website I have some .mp3 files. However, when you click on the link to the files it immediately starts to *stream* the files. I do not want that. I want that alert box to pop up and prompt the user if they would like to Open, Download or Cancel. Just like a .doc, .ppt or whatever. Is this possible with a .mp3 in HTML? Is there a HTML tag that will prompt that dialog box. Right now I just have a line on my page telling users to right-click and select "save target as".

Mark



------------------
Sho~Bud Pro I, Fender D-8 (C6&E13) http://www.darkmagneto.com

User avatar
Bobby Lee
Site Admin
Posts: 14863
Joined: 4 Aug 1998 11:00 pm
Location: Cloverdale, California, USA

Post by Bobby Lee »

Remove the mime type from your server configuration.
Jim Phelps
Posts: 3421
Joined: 6 Sep 2002 12:01 am
Location: Mexico City, Mexico

Post by Jim Phelps »

Hi Mark, emailed you.
User avatar
Colin Goss
Posts: 338
Joined: 4 Aug 1998 11:00 pm
Location: St.Brelade, Island of Jersey, Channel Islands, UK

Post by Colin Goss »

Well actually, I wanted to stream mine, but just couldn't get it to work. So how do I go about streaming MP3s??
Jim Phelps
Posts: 3421
Joined: 6 Sep 2002 12:01 am
Location: Mexico City, Mexico

Post by Jim Phelps »

Colin, streaming MP3's isn't usually done because only those with a high-speed connection can usually stream them without stops and starts. A 56k dialup can't get enough fast enough to keep up. If you still want to stream them, one way is to link them from a .ram page same as you'd do for streaming RealAudio files.
User avatar
Mark Ardito
Posts: 899
Joined: 9 Aug 1999 12:01 am
Location: Chicago, IL, USA

Post by Mark Ardito »

**UPDATE**

OK, I don't host my own site, so I have no control over the server. I contacted the hosting company and they told me it was a client machine configuration that streams them. I then told him that ALL clients that visit my site and are you trying to tell me that all clients are configured this way, he just replied "It's not our problem it is yours!" I hate that damn answer!!!

If anyone has anymore suggestions (Besides finding a new hosting company) please let me know.

Thanks,
Mark


------------------
Sho~Bud Pro I, Fender D-8 (C6&E13) http://www.darkmagneto.com

Jeff Agnew
Posts: 741
Joined: 18 Sep 1998 12:01 am
Location: Dallas, TX

Post by Jeff Agnew »

b0b is correct - file handling is a server function controlled by MIME mapping. This is a simple table that tells the server how to process a file with a given extension, such as .mp3.

If you had access to the server, you could easily change the file association. Either your ISP lied or they don't know what they're doing on their own server.

A user can also change how a file is handled by their own browser. In other words, you could configure IE to download an mp3 rather than play it. But this is even more of a distraction than asking your user to "Save As...".

I can't think of any options that don't involve more work for the user. On servers I haven't controlled I've resorted to zipping the files to force a download but then you have to assume the user has an unzip program and knows how to use it.
Everett Cox
Posts: 497
Joined: 13 Jul 1999 12:01 am
Location: Marengo, OH, USA (deceased)

Post by Everett Cox »

Mark-- I don't understand (unless you made changes yesterday) because I *DO* get the standard download window when left-clicking the links. Same thing when right-clicking and doing the 'save as'. Your .mp3's are NOT 'streaming' for me. --Everett
Jeff Agnew
Posts: 741
Joined: 18 Sep 1998 12:01 am
Location: Dallas, TX

Post by Jeff Agnew »

Hmmm. I should have checked your files before opening my big mouth, er, keyboard. I get the same response as Everett.The files don't stream for me, either.

This means those who get the files streamed may indeed have it set that way in their browser's MIME type handling. My apologies to your ISP's competence.

In Netscape/Mozilla and in Opera you can set this directly, according to the file extension. I don't have IE handy but seem to recall it's more involved than that.
User avatar
Mark Ardito
Posts: 899
Joined: 9 Aug 1999 12:01 am
Location: Chicago, IL, USA

Post by Mark Ardito »

Well, I sent an email to this tech at my hosting company...you know, the guy who told me "It's not our problem it is yours". I sent him an email asking him change the MIME type for .mp3 files and now it works the way I want it to. I guess they lied to me the first time.

Well, I guess that's what I get for going with the cheapest hosting company I could find. They ranked really high on the ZDNet polls, and that is why I chose them. FYI the company is Ready Hosting

Thanks for all your help!

Mark


------------------
Sho~Bud Pro I, Fender D-8 (C6&E13) http://www.darkmagneto.com