Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Checks file type from the data.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Files | 14.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
FilePath | The native file path. Something like "/Users/cs/desktop/test.txt" on Mac and "C:\Programs\Data\test.txt" on Windows. Files without path end in the root directory on Mac. |
"test.txt" |
Returns text or error.
PDF document. | |
JPEG | JPEG image. |
GIF | GIF image. |
BMP | Windows BMP image |
WEBP | WebP image. |
PNG | PNG image. |
TIFF | TIFF image. |
GIF | GIF image. |
SVG | SVG image. |
ZIP | ZIP file. |
HEIF | HEIF image file. |
FMP | FileMaker database. |
EXE | Windows executable |
MachO | macOS executable |
ELF | Linux executable |
Check file type:
Set Variable [$type; Value: MBS( "Files.IdentifyData"; "/Users/cs/Desktop/test.fmp12" ) ]
This function is free to use.
Created 23th December 2023, last changed 8th January 2024