Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebDownloadDelegate.SetFolder
Sets the download folder.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebDownloadDelegate | 2.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "WebDownloadDelegate.SetFolder"; Path ) More
Parameters
Parameter | Description | Example |
---|---|---|
Path | The native path to the download folder. | $path |
Result
Returns OK on success.
Description
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.
Examples
Download to desktop:
Set Variable [ $result ; Value: MBS("WebDownloadDelegate.SetFolder"; MBS( "Folders.UserDesktop" )) ]
See also
- Files.MoveFile
- Folders.UserDesktop
- Path.FileMakerPathToNativePath
- WebDownloadDelegate.ClearFolder
- WebDownloadDelegate.GetFolder
- WebDownloadDelegate.Install
- WebDownloadDelegate.MIMEType
- WebDownloadDelegate.SetFailHandler
Release notes
- Version 9.5
- Added check for WebDownloadDelegate.SetFolder to verify path is a valid folder.
Blog Entries
- Web Download Delegate for WebKit 2 in FileMaker
- MBS FileMaker Plugin, version 9.5pr5
- MBS Filemaker Plugin, version 2.8pr8
This function is free to use.
Created 18th August 2014, last changed 26th August 2023
WebDownloadDelegate.SetFailHandler - WebDownloadDelegate.SetProgressHandler