File Column 0.2

I’m happy to announce the release 0.2 of my file_column extension that makes handling of file uploads in Ruby on Rails as easy as it should be. It is a major rewrite that results in cleaner, more maintaineable code and includes some new features and a few bug fixes.

file_column now tries to auto-detect file-types (using unix’s “file” utility) of uploaded files to fix the extension if it is not set correctly. This ensures that the file is served with the correct mime-type by your web-server. So for example, if a JPEG-image is uploaded without an extension, it will be saved with a ”.jpg” extension, so that web-servers can send the correct mime tipe of “image/jpeg”. This feature was mainly developed by Michael Raidel. Thanks for your work, Michael.

For the future I’m planing to move file_column to rubyforge and to work with Kyle Maxwell to integrate this excellent imagemagick extensions. So stay tuned for more good news!