Noel Walters wrote: > I'm using send_file to send images from a controller. like this: > > send_file( @content.location, :disposition => 'inline', :type => > File.mime_type?(@content.location)) # mime_type? courtesy of mimetype_fu > > This is called for in an ordinary <img> tag. > > It all works perfectly except for one minor hitch which is driving me > mad. > > If you right click on the image in IE7 and choose "Save Image As..." the > file save dialog always defaults the filename to "untitled.bmp".
Try using send_file's :filename option. -- Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

