forcing an mp3 file to be downloaded

Why not give the user the option of both, though? Right-clicking to download or clicking to listen? I frequently middle-click to open mp3s in a background tab to listen to podcasts, music, etc. Instead of forcing your user to do things one way I think they’d appreciate having a choice.

RSL

Hi,

In your controller, you can use

send_data @mp3filecontent, :type => “put correct mime type here”, :disposition => “attachment”

Hope this helps,

Regards,

Oyku.