GetUploadProgress
Returns the progress of the given upload from 0.0 to 1.0 or -1 if upload not found.
caution
This will always return 1 on Unity mobile platforms.
Method Parameters
Parameter | Description |
---|---|
uploadId | The id of the upload |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
string myUploadId = "1234-1234-1234-1234"; //From UploadFile return data
double progress = _bc.FileService.GetUploadProgress(myUploadId);
const char* myUploadId = "1234-1234-1234-1234"; //From UploadFile return data
double progress = _bc->getFileService()->getUploadProgress(myUploadId);
NSString * uploadId = @"1234-1234-1234-1234"; //From UploadFile return data
[[_bc fileService] getUploadProgress:uploadId];
public double getUploadProgress(String uploadId)
// N/A
var uploadId = "1234-1234-1234-1234";
ServerResponse result = await _bc.fileService.getUploadProgress(uploadId:uploadId);
if (result.statusCode == 200) {
print("Success");
} else {
print("Failed ${result.error['status_message'] ?? result.error}");
}
// N/A
// N/A