| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Webview.SetDefaultDownloadFolderPath
Sets the default download folder path.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Webview | 15.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "Webview.SetDefaultDownloadFolderPath"; WebViewerRef ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. |
Result
Returns OK or error.
Description
Sets the default download folder path.The default value is the system default download folder path for the user. The default download folder path is persisted in the user data folder across sessions. The value should be an absolute path to a folder that the user and application can write to. Throws an exception if the value is invalid, and the default download path is not changed. Otherwise the path is changed immediately. If the directory does not yet exist, it is created at the time of the next download. If the host application does not have permission to create the directory, then the user is prompted to provide a new path through the Save As dialog. The user can override the default download folder path for a given download by choosing a different path in the Save As dialog.
See also
Release notes
- Version 15.5
- Added Webview.GetDefaultDownloadFolderPath and Webview.SetDefaultDownloadFolderPath functions for Windows.
Blog Entries
This function checks for a license.
Created 1st October 2025, last changed 1st October 2025