//If we want to track uploading for this request accurately, we need to add the size of the post content to the total
//If we want to track uploading for this request accurately, we need to add the size of the post content to the total
}elseif(uploadProgressDelegate){
[requestbuildPostBody];
uploadProgressTotalBytes+=[requestpostLength];
...
...
@@ -150,7 +150,7 @@
if(uploadProgressDelegate){
//For uploads requests, we always work out the total upload size before the queue starts, so we tell the request not to reset the progress indicator when starting each request
//For uploads requests, we always work out the total upload size before the queue starts, so we tell the request not to reset the progress indicator when starting each request
[requestsetShouldResetProgressIndicators:NO];
[requestsetUploadProgressDelegate:self];
}else{
...
...
@@ -233,7 +233,6 @@
}
downloadProgressTotalBytes+=bytes;
[selfincrementDownloadProgressBy:0];
NSLog(@"download size is now: %qu",downloadProgressTotalBytes);