Client side validation example.
Carrierwave example + rmagick.