active_storage_validations
Ruby
★ 0
updated 5y ago
⑂ fork
Do it like --- validates :photos, attached: true, content_type: ['image/png', 'image/jpg', 'image/jpeg'], size: { less_than: 500.kilobytes }, , limit: { min: 1, max: 3 }
No plain-English explanation yet — one is being written right now. Check back in a minute.