Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delivering MP3 via web...



I'm working on a similar project... here's a tip to force a user to download
the MP3, instead of having the browser play it. Make sure your web server
sends out the following headers, the first two are most important:

Content-Type: application/download
Content-Disposition: attachment; filename=blah.mp3
Content-Transfer-Encoding: binary
Cache-Control: no-cache, must-revalidate
Pragma: no-cache

That will cause a "save as..." dialog prompt to open. Hope that helps!

Joe

----- Original Message ----- 
From: "Richard Sandilands" <email@hidden>
To: <email@hidden>
Sent: Tuesday, October 14, 2003 4:59 PM
Subject: Delivering MP3 via web...


> Hi there
>
> I need to be deliver a bunch of MP3 files via the web. They are up to
> 1MB in size.
>
> I'm curious as to the best strategy for doing do. The typical user of
> the site is likely to listen to them online, although some will wish to
> download as well.
>
> Is it just a matter of embedding them in the page.
>
> I have considered wrapping them as swf's with a play/pause/stop
> controller done in Flash.
>
> Any clues appreciated.
>
> Richard
> _______________________________________________
> web-development mailing list | email@hidden
> Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/web-development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Delivering MP3 via web... (From: Richard Sandilands <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.