from_media_type method

from_media_type

Maps file media type to file type e.g. ‘application/pdf’ will be mapped to FileType.PDF.

Returns

Returns corresponding media type when found, otherwise returns default FileType.Unknown file type.

def from_media_type(self, media_type):
    ...
Parameter Type Description
media_type System.String File media type e.g. application/pdf.

See Also