Files.FileUTITypes
------------------

Queries uniform type identifiers for this file.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [2.9](newinversion29.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

MBS( "Files.FileUTITypes"; Path ) 

**MBS**( **"Files.FileUTITypes";** /\* Queries uniform type identifiers for this file. \*/  
**$Path**) /\* Native path to the file to check.e.g. "C:\\test\\me.jpg" \*/ 

### Parameters

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

### Result

Returns file types as text or error.

### Description

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.data, public.item and public.content. A jpg image has types public.jpeg, public.image, public.data, 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.  
### Examples

Queries types of a file

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

- [Files/FileInfo](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileInfo.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 2.9pr3](https://www.mbsplugins.de/archive/2012-08-19/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 4/2020, Seite 34](https://filemaker-magazin.de/neuigkeit/4103-Appetithappen-FMM_202004)

This function checks for a license.

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

  
[Files.FileSize](FilesFileSize.md) - [Files.FolderSize](FilesFolderSize.md)

[HTML Version](FilesFileUTITypes.shtml)