This is a simple library that takes a filename as a string and returns its mime-type Source: https://github.com/K1D77A/cl-mime-from-string.git Thanks.