Now parameterized check for mimetypes