[Mongrel] how to send mp3 inline?

Patrick Aljord patcito at gmail.com
Sun Mar 18 11:08:31 EDT 2007

thanx that's exactly what I did as a work around. I was just wondering
there was another way.

On 3/18/07, Eden Li <eden at mojiti.com> wrote:
> 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?
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users

More information about the Mongrel-users mailing list