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