Return the content type of a file, don't delete temporary files immediately