Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

Text.MimeTypeToFileExtension

Returns file extension for given mime type.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Text 5.4 Yes Yes Yes Yes Yes

MBS( "Text.MimeTypeToFileExtension"; MimeType )

Parameters

Parameter Description Example value
MimeType The mime type to lookup. "application/pdf"

Result

Returns text or error.

Description

Returns file extension for given mime type.
Extension is returned with dot prefix.

Please report any missing file extensions in our lookup table, so we can add more.
See also Text.FileExtensionToMimeType.

Examples

Checks for PDF:

MBS( "Text.MimeTypeToFileExtension"; "application/pdf" )

Example result: .pdf

See also

Created 2nd October 2015, last changed 11st December 2016


Text.LowerCase   -   Text.ReadEMLXFile

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins