Does paperclip restrictions on the minimum size of the file?

Project on ruby on rails. To upload pictures using the paperclip. Loaded svg-shki size 1KB somewhere. There are in fact few black rectangles. But they are not loaded. Paperclip in the folder system/... creates just an empty file.
If I add more svg elements that increase the file size, the download goes well.

Does paperclip restrictions on the minimum size of the file?
June 14th 19 at 19:17
1 answer
June 14th 19 at 19:19
Try:

validates_with AttachmentSizeValidator, attributes: :avatar, greater_than: 1.kilobytes


or

validates_attachment :avatar, size: { greater_than: 0..10.kilobytes }


conditions may be different:
greater_than/in/less_than

Find more questions by tags Ruby on Rails