From: Daniel Greig Date: 2006-08-11T12:03:30+09:00 Subject: Getting a files mime-type Hi, Can anyone tell me if there is a simple way to get the mime-type of a file? (I've seen the Mime::Type library, but haven't figured out how to use it). I'm trying to check the type before processing a bunch of files on disk (and ignoring files that I'm not interested in. Is there a better way than using the file extension? thanks, Dan -- Posted via http://www.ruby-forum.com/.