Is there a bullet proof way to detect MIME type of uploaded file in Ruby or Ruby on Rails? I\'m uploading JPEGs and PNGs using SWFupload and content_type is alw
content_type
You can use
Mime::Type.lookup_by_extension(extention_name)
Thanks