I'm using a Rake task to add local files into a database designed for use with attachment_fu. http://eldorado.googlecode.com/svn/trunk/db/migrat... http://eldorado.googlecode.com/svn/trunk/lib/tasks... So, attachment_fu has a "content_type" field, which apparently is receiving that information from the browser...? I'm trying to figure out if there is a way to get the content_type of a file (e.g. 'image/png') that you've already got in your file-system. I can't find anything about this in the Pickaxe, or by looking at the attachment_fu plugin. Any help very much appreciated!
on 2007-07-04 19:05
on 2007-07-05 04:22
read the following post: http://www.railsweenie.com/users/2237/posts contains information about using the mime-types plugin to determine content_type outside of the CGI library Mike
on 2007-07-05 04:26
Terrific. Thanks very much!