FileColumn - version and not image files


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.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs