Determine MIME type of document file.