File Type and MIME

Detect the type and MIME of a file.