File Column


#1

Has anyone any experiance with the FileColumn plugin. I’m trying to
create thumbnails, and also alow non picture uploads. Here’s some
working code, but if I try and upload a zip, it says ‘File invalid
image’. Is there anyway of having both image uploads (and thumbnail
generation) while also allowing non image uploads?

class Entry < ActiveRecord::Base
validates_presence_of :name, :file
validates_uniqueness_of :name
file_column :file, :magick => {
:versions => { “thumb” => “50x50”, “medium” => “640x480>” }
}
end