Hi
I am using file_column to create and store thumbnails of users images.
file_column :image, :magick => {:crop => "1:1", :size =>
"70x70" }
I have tried to restrict file size by using
validates_filesize_of :image, :in => 50.kilobytes..200.kilobytes
But this works only in the sense that it will compare the size of the
file after the crop.
How can I check that the size of the loaded file is valid?
Cheers
Mark
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---