GetExtensionForMimeType (open)

Get the proper or usual extension for the file's mimetype

Syntax

LOADLIB "wh::files.whlib";

STRING FUNCTION GetExtensionForMimeType(STRING mimetype)

Parameters

STRING mimetype

Mimetype

Return value

STRING

Extension (incliding the ".", eg ".jpg"), empty if no extension has been defined for this mimetype.