Get mime type for a file in Ruby

Posted Almost 7 years ago. Visible to the public.
`file --b --mime-type '/path/to/file.txt'`.strip

Read more Show archive.org snapshot

Greg
Posted by Greg to Ruby on Rails (2017-07-14 15:54)