1 Repo
Model-level validators for ensuring uploaded files meet business requirements.
Distinct from Storage Schema Validations: Focuses on model-level attachment validation rather than general storage schema consistency.
Explore 1 awesome GitHub repository matching data & databases · Attachment Validation Validators. Refine with filters or upvote what's useful.
Active Storage Validations is a library for Ruby on Rails that provides model-level validation helpers for file attachments. It integrates directly into the standard validation lifecycle to ensure that uploaded content conforms to defined business requirements before it is persisted to storage. The framework enforces constraints on file size, content type, dimensions, and the number of attachments. It includes security mechanisms to detect and block content-type spoofing by inspecting the binary signature of files to verify that their actual format matches the declared extension. Beyond basi
Provides model-level validators to ensure uploaded files meet business requirements before storage.