Forum: Ruby on Rails How do you determine the MIME type for a file?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B199c6556fec872d272086be15c5e4ab?d=identicon&s=25 Robert La ferla (rlaferla)
on 2007-07-23 20:19
(Received via mailing list)
What's the best way to determine the mime type of a file given it's
581905e940c1e30190108a0c5c0b915b?d=identicon&s=25 Adam Cohen (Guest)
on 2007-07-23 21:20
(Received via mailing list)
use the mime_types gem

This topic is locked and can not be replied to.