Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Apache, mp3 downloads

Apache, mp3 downloads
Thread Tools
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Mar 2, 2003, 11:51 AM
 
Is there a way to configure Apache to download mp3 files rather than playing them inline via the QT plug? Yes, these are legitimate mp3 files. =)
     
Mac Elite
Join Date: Aug 2000
Location: Minneapolis, MN
Status: Offline
Reply With Quote
Mar 2, 2003, 02:50 PM
 
There are several problems that creep in when trying to do what you are asking.

First, the web server sees and recognizes the type of file (with MIME type and using the 3letter extensions).

Your web-browser recognizes the 3-letter extensions and MIME type sent by the webserver.

For you to download rather than 'play' the items you can change your MIME preferences in YOUR browser to not automatically play files of that type.

BUT it only works for you. If you want ANYONE coming to your site to be able to do this, you would want to change your webserver settings and the MIMEtype to force anyone to 'save' the file rather than play.

Sorry this doesn't directly answer your question, but it may point you in the right direction.

If anyone has a better explanation, please chime in.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Mar 2, 2003, 10:08 PM
 
thanks bluedog, that was exactly what I was expecting.

Let me know if you think of some creative workaround or something... =)
     
Mac Elite
Join Date: Aug 2000
Location: Minneapolis, MN
Status: Offline
Reply With Quote
Mar 3, 2003, 07:58 AM
 
I'll see if I can dredge up the code that I found for a workaround. Its not pretty.
     
Senior User
Join Date: Mar 2001
Location: Bay Area, CA
Status: Offline
Reply With Quote
Mar 3, 2003, 10:49 AM
 
Couldn't you just compress the mp3 files as ".sit" or ".gz" archives? Most browsers will them automatically download and uncompress these files for you.

It won't really compress the mp3 files much since they are already compressed with their own algorithms, but it might have the desired effect for you.

This might not be convenient if you want to just share your main music folder though.

Alternatively I would just put a message on the page telling everyone to either Right-Click or Control-Click and choose "Save Link As"
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 05:47 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2