For different objects I could have different sizes of images. For profile picture I would like to limit the size to 1MB. For other pictures I would like to allow 10M.
I could add validation but it is validation for the whole image uploaded as in https://shrinerb.com/docs/validation
class ImageUploader < Shrine Attacher.validate do # ... perform validation ... end end
Does this mean I must have two different image uploaders - one for Profile where the check is for 1MB and one for other where the check is for 10MB?