Fail-closed checks for untrusted uploads: the real file type must be allowlisted and match the extension, and PDF, Office, zip, SVG, PNG, JPEG, GIF, WebP, HEIC, AVIF, MP4 and QuickTime files are verified structurally (scripts, macros, external links, appended data, zip and pixel bombs are rejected), as are CSV/TXT files (UTF-8 only, no binary, no CSV injection). Works with file paths, Rails uploads, Active Storage, any IO and S3 objects uploaded through presigned URLs, and ships a Rails validator and background job. Inspection runs in a resource-limited child process. Pure Ruby, not an antivirus. If this gem helps you, a star on GitHub is much appreciated! Usage and options: https://github.com/akarui2004/upload_inspector#usage
Required Ruby Version
>= 3.2
Authors
Minh Doan
Versions
-
0.6.0
-
source
- 0.6.0 source November 13, 2026 (37.5 KB)
-
-
0.5.0
-
source
- 0.5.0 source November 13, 2026 (33 KB)
-
-
0.4.0
-
source
- 0.4.0 source November 13, 2026 (31.5 KB)
-
-
0.3.0
-
source
- 0.3.0 source November 12, 2026 (28 KB)
-
-
0.2.0
-
source
- 0.2.0 source November 12, 2026 (19.5 KB)
-
Pushed by
SHA 256 checksum
Provenance
Source Commit
Build File