CURL.SetUpdateProgressDialog
----------------------------

Sets whether progress dialog should be automatically updated.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes |

MBS( "CURL.SetUpdateProgressDialog"; curl; Value ) 

**MBS**( **"CURL.SetUpdateProgressDialog";** /\* Sets whether progress dialog should be automatically updated. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* 0 to disable updates or 1 to enable updatese.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | 0 to disable updates or 1 to enable updates | 1 |

### Result

Returns "OK" on success.

### Description

Sets whether progress dialog should be automatically updated.  
You can setup a progress dialog with our [ProgressDialog](component_ProgressDialog.md) functions. If you enable updates, the plugin will automatically update the progress bar with percentage of upload or download done.  
Does not work with [CURL.PerformInBackground](CURLPerformInBackground.md).  
### Examples

Enable updates

 MBS ( "CURL.SetUpdateProgressDialog"; $curl ; 1 )  
Use progress dialog with upload or download:

 # setup progress dialog   
Set Variable \[$result ; Value:MBS ("[ProgressDialog.SetCancel](ProgressDialogSetCancel.md)"; 0)\]  
Set Variable \[$result ; Value:MBS ("[ProgressDialog.SetProgress](ProgressDialogSetProgress.md)"; 0)\]  
Set Variable \[$result ; Value:MBS ("[ProgressDialog.SetTopText](ProgressDialogSetTopText.md)"; "Sending email...")\]  
Set Variable \[$result ; Value:MBS ("[ProgressDialog.SetShowButton](ProgressDialogSetShowButton.md)"; 0)\]  
Set Variable \[$result ; Value:MBS ("[ProgressDialog.Show](ProgressDialogShow.md)")\]  
\# 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](CURLPerform.md)"; $curl )\]  
\# hide progress dialog   
Set Variable \[$result ; Value:MBS ("[ProgressDialog.Hide](ProgressDialogHide.md)")\]  
### See also

- [CURL.Perform](CURLPerform.md)
- [CURL.PerformAsync](CURLPerformAsync.md)
- [CURL.PerformInBackground](CURLPerformInBackground.md)
- [Dialog.SetTop](DialogSetTop.md)
- [ProgressDialog.Hide](ProgressDialogHide.md)
- [ProgressDialog.SetCancel](ProgressDialogSetCancel.md)
- [ProgressDialog.SetProgress](ProgressDialogSetProgress.md)
- [ProgressDialog.SetShowButton](ProgressDialogSetShowButton.md)
- [ProgressDialog.SetTopText](ProgressDialogSetTopText.md)
- [ProgressDialog.Show](ProgressDialogShow.md)

### 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#3ScriptAnchor_)
- [CURL/CURL Download in Background](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/CURL%20Download%20in%20Background.shtml#1ScriptAnchor_)
- [CURL/CURL Download with Progress](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/CURL%20Download%20with%20Progress.shtml#1ScriptAnchor_)
- [CURL/FTP/CURL FTP Upload from file with Progress](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/FTP/CURL%20FTP%20Upload%20from%20file%20with%20Progress.shtml#2ScriptAnchor_)
- [CURL/FTP/CURL FTP Upload](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/FTP/CURL%20FTP%20Upload.shtml#4ScriptAnchor_)
- [CURL/SFTP/CURL sFTP Upload File](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/SFTP/CURL%20sFTP%20Upload%20File.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 2.7fc](https://www.mbsplugins.de/archive/2012-05-08/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin 2.7 Release notes](https://www.mbsplugins.de/archive/2012-05-08/MBS_Filemaker_Plugin_27_Releas/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.7pr7](https://www.mbsplugins.de/archive/2012-04-29/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 15th June 2021

  
[CURL.SetTag](CURLSetTag.md) - [CURL.SetupAWS](CURLSetupAWS.md)

[HTML Version](CURLSetUpdateProgressDialog.shtml)