Forum: Ruby on Rails FileColumn - version and not image files

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mattias B. (Guest)
on 2006-04-05 18:51
Hi

I have this filecolumn:

file_column :file, :magick => { :versions => { :large => '756x567>' } }

Does anybody have a solution to make this also accept files that aren't
images? Now this makes filecolumn return an error of "File invalid
image" if the file isn't an image.

Would be nice if it, when the file is invalid image, just uploads the
file as filecoulm does when you don't specify magick.

Cheers,
Mattias
This topic is locked and can not be replied to.