Component: FileDialog 
----------------------

Show dialogs to select files or folders.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [2.6](newinversion26.md "First functions introduced with version 2.6.") / [15.3](newinversion153.md "Newest functions in version 15.3.") | ✅ 80% | 🔶 58% | ❌ No | ❌ No | 🔶 20% |

  
| Item | Details |
|:--|:--|
| [DocumentPicker.Dismiss](DocumentPickerDismiss.md)   Dismisses the dialog. | iOS   9.1 |
| [DocumentPicker.Export](DocumentPickerExport.md)   Shows dialog to export files. | iOS   9.1 |
| [DocumentPicker.File](DocumentPickerFile.md)   Queries native file path for a file. | iOS   9.1 |
| [DocumentPicker.FileCount](DocumentPickerFileCount.md)   Queries file count. | iOS   9.1 |
| [DocumentPicker.Files](DocumentPickerFiles.md)   Queries list of native file paths. | iOS   9.1 |
| [DocumentPicker.Import](DocumentPickerImport.md)   Shows dialog to import files. | iOS   9.1 |
| [DocumentPicker.IsVisible](DocumentPickerIsVisible.md)   Queries whether dialog is visible. | iOS   9.1 |
| [DocumentPicker.Move](DocumentPickerMove.md)   Shows dialog to move files. | iOS   9.1 |
| [DocumentPicker.Open](DocumentPickerOpen.md)   Shows dialog to open files. | iOS   9.1 |
| [DocumentPicker.SetTrigger](DocumentPickerSetTrigger.md)   Sets trigger for document trigger. | iOS   9.1 |
| [FileDialog.GetAllowMulti](FileDialogGetAllowMulti.md)   Queries whether multiple selection is allowed. | Mac/Win   2.7 |
| [FileDialog.GetAllowsOtherFileTypes](FileDialogGetAllowsOtherFileTypes.md)   Queries if other file types. | Mac only   4.3 |
| [FileDialog.GetCanCreateDirectories](FileDialogGetCanCreateDirectories.md)   Queries whether the user can create directories. | Mac only   15.3 |
| [FileDialog.GetCanSelectHiddenExtension](FileDialogGetCanSelectHiddenExtension.md)   Returns a Boolean value that indicates whether the panel allows the user to hide or show extensions. | Mac only   2.7 |
| [FileDialog.GetFilter](FileDialogGetFilter.md)   Queries which filter is defined. | Mac/Win   4.3 |
| [FileDialog.GetInitialDirectory](FileDialogGetInitialDirectory.md)   Queries the initial directory. | Mac/Win   2.7 |
| [FileDialog.GetMessage](FileDialogGetMessage.md)   Returns the message displayed in the save panel. | Mac/Win   2.7 |
| [FileDialog.GetNameFieldLabel](FileDialogGetNameFieldLabel.md)   Returns the string displayed in front of the filename text field. | Mac/Win   2.7 |
| [FileDialog.GetNameFieldStringValue](FileDialogGetNameFieldStringValue.md)   Returns the user-editable filename currently shown in the name field. | Mac/Win   2.7 |
| [FileDialog.GetPath](FileDialogGetPath.md)   Queries the native path with the given index. | Mac/Win   2.7 |
| [FileDialog.GetPathCount](FileDialogGetPathCount.md)   Queries number of file paths available. | Mac/Win   2.7 |
| [FileDialog.GetPrompt](FileDialogGetPrompt.md)   Queries current prompt text. | Mac/Win   2.7 |
| [FileDialog.GetResolvesAliases](FileDialogGetResolvesAliases.md)   Returns whether the panel resolves aliases. | Mac/Win   2.7 |
| [FileDialog.GetShowHidden](FileDialogGetShowHidden.md)   Returns whether the panel displays files that are normally hidden from the user. | Mac/Win   2.7 |
| [FileDialog.GetTreatsFilePackagesAsDirectories](FileDialogGetTreatsFilePackagesAsDirectories.md)   Whether the panel displays file packages as directories. | Mac only   2.7 |
| [FileDialog.GetUseSheet](FileDialogGetUseSheet.md)   Queries sheet status. | Mac only   8.5 |
| [FileDialog.GetWindowTitle](FileDialogGetWindowTitle.md)   Returns the title of the panel. | Mac/Win   2.7 |
| [FileDialog.OpenFileDialog](FileDialogOpenFileDialog.md)   Shows dialog to select a file. | Mac/Win   2.7 |
| [FileDialog.Reset](FileDialogReset.md)   Resets all options to default values. | Mac/Win   2.7 |
| [FileDialog.SaveFileDialog](FileDialogSaveFileDialog.md)   Shows dialog to select where to save a file. | Mac/Win   2.7 |
| [FileDialog.SelectFolderDialog](FileDialogSelectFolderDialog.md)   Shows dialog to select a folder. | Mac/Win   2.7 |
| [FileDialog.SelectItemDialog](FileDialogSelectItemDialog.md)   Shows dialog to select either file or folder. | Mac/Win   2.7 |
| [FileDialog.SetAllowMulti](FileDialogSetAllowMulti.md)   Sets whether multiple selection is allowed. | Mac/Win   2.7 |
| [FileDialog.SetAllowsOtherFileTypes](FileDialogSetAllowsOtherFileTypes.md)   Sets whether other file types are allowed. | Mac/Win   4.3 |
| [FileDialog.SetCanCreateDirectories](FileDialogSetCanCreateDirectories.md)   Sets whether to allow directory creation. | Mac only   15.3 |
| [FileDialog.SetCanSelectHiddenExtension](FileDialogSetCanSelectHiddenExtension.md)   Sets whether the panel allows the user to hide or show extensions. | Mac only   2.7 |
| [FileDialog.SetFilter](FileDialogSetFilter.md)   Queries whether other file types are allowed. | Mac/Win   4.3 |
| [FileDialog.SetInitialDirectory](FileDialogSetInitialDirectory.md)   Sets the initial directory. | Mac/Win   2.7 |
| [FileDialog.SetMessage](FileDialogSetMessage.md)   Sets the message text displayed in the panel. | Mac only   2.7 |
| [FileDialog.SetNameFieldLabel](FileDialogSetNameFieldLabel.md)   Sets the text displayed in front of the text field. | Mac/Win   2.7 |
| [FileDialog.SetNameFieldStringValue](FileDialogSetNameFieldStringValue.md)   Sets the filename in the name field to the specified value. | Mac/Win   2.7 |
| [FileDialog.SetPrompt](FileDialogSetPrompt.md)   Sets the prompt of the default button. | Mac/Win   2.7 |
| [FileDialog.SetResolvesAliases](FileDialogSetResolvesAliases.md)   Sets whether the panel resolves aliases. | Mac/Win   2.7 |
| [FileDialog.SetSheetScriptTrigger](FileDialogSetSheetScriptTrigger.md)   Sets sheet trigger. | Mac only   8.5 |
| [FileDialog.SetShowHidden](FileDialogSetShowHidden.md)   Specifies whether the panel displays files that are normally hidden from the user. | Mac/Win   2.7 |
| [FileDialog.SetTreatsFilePackagesAsDirectories](FileDialogSetTreatsFilePackagesAsDirectories.md)   Sets the panel's behavior for displaying file packages (for example, MyApp.app) to the user. | Mac only   2.7 |
| [FileDialog.SetUseSheet](FileDialogSetUseSheet.md)   Sets whether to use sheets. | Mac only   8.5 |
| [FileDialog.SetWindowTitle](FileDialogSetWindowTitle.md)   Sets the title of the dialog. | Mac/Win   2.7 |
| [FileDialogWatcher.GetLastPath](FileDialogWatcherGetLastPath.md)   Queries the last path used in open/save dialogs. | Mac/Win   2.6 |
| [FileDialogWatcher.Install](FileDialogWatcherInstall.md)   Installs the required code to catch file names from open/save dialogs on Mac. | Mac/Win   2.6 |

50 functions shown.

### Release notes

- **Version 15.3**
    - Added [FileDialog.SetCanCreateDirectories](https://www.mbsplugins.eu/FileDialogSetCanCreateDirectories.shtml) and [FileDialog.GetCanCreateDirectories](https://www.mbsplugins.eu/FileDialogGetCanCreateDirectories.shtml) functions.
- **Version 13.4**
    - Changed [FileDialog](https://www.mbsplugins.eu/component_FileDialog.shtml) functions to return error when called server side.
- **Version 11.0**
    - Fixed [FileDialog.GetNameFieldStringValue](https://www.mbsplugins.eu/FileDialogGetNameFieldStringValue.shtml) for Windows to return name of chosen file after dialog showed.
- **Version 10.3**
    - Added create folder button for [FileDialog.SelectFolderDialog](https://www.mbsplugins.eu/FileDialogSelectFolderDialog.shtml) function on MacOS.
- **Version 10.0**
    - Fixed [FileDialog](https://www.mbsplugins.eu/component_FileDialog.shtml) functions on Windows to use frontmost FileMaker document window as parent window.
- **Version 9.5**
    - Fixed [FileDialog](http://www.mbsplugins.eu/component_FileDialog.shtml) functions to not show always the create directory button.
- **Version 9.4**
    - Added check to [FileDialog.OpenFileDialog](http://www.mbsplugins.eu/FileDialogOpenFileDialog.shtml), [FileDialog.SaveFileDialog](http://www.mbsplugins.eu/FileDialogSaveFileDialog.shtml), [FileDialog.SelectFolderDialog](http://www.mbsplugins.eu/FileDialogSelectFolderDialog.shtml) and [FileDialog.SelectItemDialog](http://www.mbsplugins.eu/FileDialogSelectItemDialog.shtml) to ignore invalid initial directory for Mac.
- **Version 9.1**
    - Added [DocumentPicker functions](https://www.mbsplugins.eu/component_FileDialog.shtml) to get file dialog to pick or export file on iOS.
- **Version 8.5**
    - Added sheet support for [FileDialog](http://www.mbsplugins.eu/component_FileDialog.shtml) functions: [FileDialog.SetSheetScriptTrigger](http://www.mbsplugins.eu/FileDialogSetSheetScriptTrigger.shtml), [FileDialog.GetUseSheet](http://www.mbsplugins.eu/FileDialogGetUseSheet.shtml) and [FileDialog.SetUseSheet](http://www.mbsplugins.eu/FileDialogSetUseSheet.shtml).

### Blog Entries

- [Container](https://www.mbsplugins.de/archive/2022-10-20/Container/monkeybreadsoftware_blog_filemaker)
- [Ways to import images to FileMaker](https://www.mbsplugins.de/archive/2022-02-09/Ways_to_import_images_to_FileM/monkeybreadsoftware_blog_filemaker)
- [New example database PDF library](https://www.mbsplugins.de/archive/2019-12-12/New_example_database_PDF_libra/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 9.1 - More than 5700 Functions In One Plugin](https://www.mbsplugins.de/archive/2019-03-12/MBS_FileMaker_Plugin_91_-_More/monkeybreadsoftware_blog_filemaker)
- [Dialogs made in FileMaker](https://www.mbsplugins.de/archive/2019-03-04/Dialogs_made_in_FileMaker/monkeybreadsoftware_blog_filemaker)
- [Document Picker Functions for MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2019-01-29/Document_Picker_Functions_for_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 8.5 - More than 5500 Functions In One Plugin](https://www.mbsplugins.de/archive/2018-11-27/MBS_FileMaker_Plugin_85_-_More/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 8.3 released](https://www.mbsplugins.de/archive/2018-07-17/MBS_FileMaker_Plugin_83_releas/monkeybreadsoftware_blog_filemaker)
- [Filemaker Magazine Article with MBS Plugin](https://www.mbsplugins.de/archive/2012-08-13/Filemaker_Magazine_Article_wit/monkeybreadsoftware_blog_filemaker)
- [Filemaker Magazine](https://www.mbsplugins.de/archive/2012-08-07/Filemaker_Magazine/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2024, Seite 37](https://filemaker-magazin.de/neuigkeit/4277-Appetithappen-FMM_202406)
- [Ausgabe 1/2022, Seite 20 bis 22](https://filemaker-magazin.de/neuigkeit/4172-Appetithappen-FMM_202201)
- [Ausgabe 6/2020, Seite 32](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)
- [Ausgabe 4/2020, Seite 33](https://filemaker-magazin.de/neuigkeit/4103-Appetithappen-FMM_202004)
- [Ausgabe 4/2018, Seite 16](https://filemaker-magazin.de/neuigkeit/3997-Appetithappen-FMM_201804)
- [Ausgabe 3/2012, Seite 30 bis 31](https://filemaker-magazin.de/neuigkeit/3561-Appetithappen-FMM_201203)

### Example Databases

- [CURL/Amazon S3/Amazon S3 Upload File](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Amazon%20S3/Amazon%20S3%20Upload%20File.shtml#6ScriptAnchor_)
- [CURL/Email/IMAP Email](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/IMAP%20Email.shtml#12ScriptAnchor_)
- [DynaPDF/Form/Form](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Form/Form.shtml#4ScriptAnchor_)
- [Files/FileDialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileDialog.shtml#1ScriptAnchor_)
- [Mac and iOS/PDFKit/Pictures to PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/Pictures%20to%20PDF.shtml#3ScriptAnchor_)
- [PDF Viewer](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/PDF%20Viewer.shtml#2ScriptAnchor_)
- [SmartCard/Belgian EID Reader](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SmartCard/Belgian%20EID%20Reader.shtml#13ScriptAnchor_)
- [SQL in FileMaker/ImageGallery](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SQL%20in%20FileMaker/ImageGallery.shtml#1ScriptAnchor_)
- [Win Only/WindowsML](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/WindowsML.shtml#1ScriptAnchor_)
- [XL/Writing data](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/XL/Writing%20data.shtml#6ScriptAnchor_)

[HTML Version](component_FileDialog.shtml)