CURL.GetProgressTotalUpload
---------------------------

Queries total number of bytes to upload.

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

MBS( "CURL.GetProgressTotalUpload"; curl ) 

**MBS**( **"CURL.GetProgressTotalUpload";** /\* Queries total number of bytes to upload. \*/  
**$curl**) /\* The CURL session handle. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |

### Result

The number of bytes to upload.

### Description

Queries total number of bytes to upload.  
Only useful with [CURL.PerformInBackground](CURLPerformInBackground.md).  
### Examples

Calculate percent uploaded

 Set Variable \[ $percent ; Value: 100 \* MBS ( "[CURL.GetProgressCurrentDownload](CURLGetProgressCurrentDownload.md)"; $curl ) / MBS ( "[CURL.GetProgressTotalDownload](CURLGetProgressTotalDownload.md)"; $curl ) \]  
### See also

- [CURL.GetProgressCurrentDownload](CURLGetProgressCurrentDownload.md)
- [CURL.GetProgressCurrentUpload](CURLGetProgressCurrentUpload.md)
- [CURL.GetProgressTotalDownload](CURLGetProgressTotalDownload.md)
- [CURL.Perform](CURLPerform.md)
- [CURL.PerformAsync](CURLPerformAsync.md)
- [CURL.PerformInBackground](CURLPerformInBackground.md)
- [CURL.SetProgressScript](CURLSetProgressScript.md)

This function is free to use.

Created 18th August 2014 , last changed 5th September 2025

  
[CURL.GetProgressTotalDownload](CURLGetProgressTotalDownload.md) - [CURL.GetProtocol](CURLGetProtocol.md)

[HTML Version](CURLGetProgressTotalUpload.shtml)