Description
Looks up MIME types with a lightweight Ruby implementation. It is useful for applications that need a small dependency for identifying file content types from filenames or known mappings.
Lightweight MIME lookup can be incomplete or wrong for hostile files. Use it as a convenience signal, and validate uploads with stronger checks when security matters.