An UDF for retrieving MIME types