I am not sure about a database of mime types, but if you know what types of files will be uploaded you can write the validation code yourself.

As an example, the file you used has the signature...