Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Sets the download folder.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 2.8 Yes No No No No
MBS( "WebDownloadDelegate.SetFolder"; Path )   More


Parameter Description Example value
Path The native path to the download folder. $path


Returns OK on success.


Sets the download folder.
Make sure the folder is empty as with duplicate file name you get an error.
If you do not set download folder, it goes to default temporary folder.

Version 9.5 or newer check if folder is valid before setting it.
Sadly macOS Catalina may ignore this folder setting and still use temporary folder, so you may need to use Files.MoveFile later to move the file to the place you like.

This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.


Download to desktop:

Set Variable [ $result ; Value: MBS("WebDownloadDelegate.SetFolder"; MBS( "Folders.UserDesktop" )) ]

See also

Blog Entries

Release notes

Created 18th August 2014, last changed 28th October 2019

WebDownloadDelegate.SetFailHandler   -   WebDownloadDelegate.SetProgressHandler

Feedback: Report problem or ask question.

MBS Xojo blog