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.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1    Statistic  


Queries uniform type identifiers for this file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Files 2.9 Yes No Yes, macOS only No No
MBS( "Files.FileUTITypes"; Path )   More


Parameter Description Example value
Path Native path to the file to check. "C:\test\me.jpg"


Returns file types as text or error.


Queries uniform type identifiers for this file.
For example a rtf file has the type public.rtf and going up the chain of types, it also has "public.text,, public.item and public.content. A jpg image has types public.jpeg, public.image,, public.item and public.content. So if you look for "public.image" in the types, you can identify that the file is an image file.


Queries types of a file

MBS( "Files.FileUTITypes"; "C:\test.txt" )

Example Databases

Blog Entries

Created 18th August 2014, last changed 18th August 2014

Files.FileSize   -   Files.FolderSize

Feedback: Report problem or ask question.

MBS Xojo blog