Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Finds a mime type for a file extension.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Text | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
FileExtension | The file extension to lookup. Anything before a dot is ignored, so you can pass whole file name or path. | "test.pdf" |
Returns OK or error.
Find mime type for PDF:
MBS("Text.FileExtensionToMimeType"; "pdf")
Example result: application/pdf
Find mime type for whole file name:
MBS("Text.FileExtensionToMimeType"; "my.test.pdf")
Example result: application/pdf
This function is free to use.
Created 2nd October 2015, last changed 11st December 2016