GetUploadBytesTransferred
Returns the number of bytes uploaded or -1 if upload not found.
caution
This will always return the total bytes to transfer 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
int bytes = _bc.FileService.GetUploadBytesTransferred(myUploadId);
const char* myUploadId = "1234-1234-1234-1234"; //From UploadFile return data
int64_t bytes = _bc->getFileService()->
getUploadBytesTransferred(myUploadId);
NSString * uploadId = @"1234-1234-1234-1234"; //From UploadFile return data
[[_bc fileService] getUploadBytesTransferred:uploadId];
public void getUploadBytesTransferred(String uploadId, IServerCallback callback)
// N/A
var uploadId = "1234-1234-1234-1234";
ServerResponse result = await _bc.fileService.getUploadBytesTransferred(uploadId:uploadId);
if (result.statusCode == 200) {
print("Success");
} else {
print("Failed ${result.error['status_message'] ?? result.error}");
}
// N/A
// N/A