Snippet: Mime types and file extensions
Snippet with a pair of helper functions showing how to get the default file extension for a given mime type, or the mime type from a given file extension.
Snippet with a pair of helper functions showing how to get the default file extension for a given mime type, or the mime type from a given file extension.