Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Sets whether progress dialog should be automatically updated.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
value | 0 to disable updates or 1 to enable updates | 1 |
Returns "OK" on success.
Enable updates
MBS( "CURL.SetUpdateProgressDialog"; $curl; 1 )
Use progress dialog with upload or download:
# setup progress dialog
Set Variable [$result; Value:MBS("ProgressDialog.SetCancel"; 0)]
Set Variable [$result; Value:MBS("ProgressDialog.SetProgress"; 0)]
Set Variable [$result; Value:MBS("ProgressDialog.SetTopText"; "Sending email...")]
Set Variable [$result; Value:MBS("ProgressDialog.SetShowButton"; 0)]
Set Variable [$result; Value:MBS("ProgressDialog.Show")]
# Tell plugin to move bar for us automatically.
Set Variable [$result; Value:MBS("CURL.SetUpdateProgressDialog"; $curl; 1)]
# Run the transfer
Set Variable [$r; Value:MBS("CURL.Perform"; $curl)]
# hide progress dialog
Set Variable [$result; Value:MBS("ProgressDialog.Hide")]
Created 18th August 2014, last changed 15th June 2021
Feedback: Report problem or ask question.