PyDocs

Nav

Internet Data Handling

MimeTypes.guess_all_extensions

  • MimeTypes.guess_all_extensions(type, strict=True)
Guess the extensions for a file based on its MIME type.

Return value is a list of strings giving the possible filename
extensions, including the leading dot ('.').  The extension is not
guaranteed to have been associated with any particular data stream,
but would be mapped to the MIME type 'type' by guess_type().

Optional 'strict' argument when false adds a bunch of commonly found,
but non-standard types.
0 Examples
No examples for mimetypes/MimeTypes.guess_all_extensions.
See Also
No see-alsos for mimetypes/MimeTypes.guess_all_extensions
0 Notes
No notes for MimeTypes.guess_all_extensions