from_file_extension method

from_file_extension

Creates a new MIME type based on file extension.

Returns

The new instance of MIME type

def from_file_extension(self, file_name):
    ...
ParameterTypeDescription
file_namestrThe name of the file.

See Also