[Mongrel] how to send mp3 inline?

Patrick Aljord patcito at gmail.com
Fri Mar 16 17:21:46 EDT 2007


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?

thanx in advance

Pat


More information about the Mongrel-users mailing list