Simple mime type detection using magic numbers, filenames, and extensions
https://github.com/rails/marcel