Method MIME.ext_to_media_type() Method ext_to_media_type string ext_to_media_type(string extension) Description Returns the MIME media type for the provided filename extension. Currently 469 file extensions are known to this method. Zero will be returned on unknown file extensions.