[Mongrel] how to send mp3 inline?
eden at mojiti.com
Sun Mar 18 02:02:27 EDT 2007
If you link to a raw audio/mp3 file, most browsers will force a
download of it because most don't include an mp3 player by default.
You need to link to an HTML page that loads up some sort of mp3 player
plugin explicitly (eg, via an object or embed tag).
On 3/17/07, Patrick Aljord <patcito at gmail.com> wrote:
> hey all,
> I'm trying to do a:
> send_file @file, :type => 'audio/mp3', :disposition => 'inline' ,:stream=>true
> I tried with all browsers and it always asks me to download the file
> or open it with a player. Is there a way to make it open in the
> embeded player (QT,Windows media player,Mplayer etc)? Only with
> konqueror if I open in new tab then I get the embeded player :/
> Am I doing something wrong with rails or with mongrel? if it's with
> mongrel , how could I configure it so it sends the right stuff?
More information about the Mongrel-users