Determines the MIME type of files based on their name and/or extension.