Skip to content

Development Issues

Rick Eversole edited this page Mar 31, 2014 · 1 revision

Limitations in Ruby MIME::Type

While the IANA registry for media types allows for the use of "MAGIC" numbers to identify a file type, the Ruby MIME::Type class does not appear to support this ability. Unfortunately, for QSO-PARTY software, too many extensions are overloaded or just not reliable to identify the type of log that we will receive. Example Ruby/Rails demo scripts for downloading files rely on the MIME::Type class to get the file type. We will have to override after we use a MAGIC number to find the real file type.