I want to get the MIME type from a filename using C.
Is there a way to do this without using a textfile containing MIME types and file extensions (i.e. Apache's file mime.types
)?
Maybe there is a function to get the MIME type using the filename? I rather not use the file extension if I don't have to.