thoughtbot/paperclip — pull request #1180 by zmillman (2013-02-28 22:33:44+00:00)
Title: Try matching uploaded file type before defaulting to first official one

(and memoize `type_from_file_command`)

This solved my issue with mp4 content types (Issue #858)