I am saving a PFFile
on Back4App
server with Parse SDK, here is the code snippet
PFFile *videoFile = [PFFile fileWithName:@"video.mp4" data:data];
[videoFile saveInBackgroundWithBlock:^(BOOL succeeded, NSError * _Nullable error) {
if (succeeded) {
handler(obj,nil);
} else {
handler(nil,error);
}
} progressBlock:^(int percentDone) {
progress(percentDone);
}];
But in the above code, I am not getting progress in the progressBlock
. I have put a breakpoint there but this block is not getting executed.
Also, I have checked the object of PFFile
and the object is valid.
Parse SDK Version - 1.14.2
Xcode Version - 8.0