DEV Community

Kobby Owen
Kobby Owen

Posted on

MegaMimes : A C Mime Type Library

Determining the Mime Type of a file In C has not been easy. Developers need an external table , which usually comes as an external file, which contains just a few mime types of various file extensions, Well I don't blame the developers, THERE IS NO ALGORITHM TO CHECK THE MIME TYPE OF A FILE. What if the FILE was deleted ? . That will be very awful for the program. Most people who do not want to use external files normally resort to using web services. This can unbearably slow, because of network problems. Now these problems of determining the MIME TYPE of a file from your C Code can be solved by MegaMimes.
MegaMimes is a C Library that is used to determine the MIME Type of a file, with just a few code. The MIME Type table comes embedded in the library and as a result, no need for external files, web services and any other technique. The library works on all major Operating Systems ( Windows, Linux,, Mac OS X ) . The library can be extended by adding your own mime types, if they do not exist in the table. MegaMimes has no dependencies, which makes it very easy to install!!!!
Do not fail to check it out.
If the library proves helpful to you, do not forget to give it a STAR. If you have any contributions, you can open a pull request and an issue. Thank You

Top comments (0)