I have a PFObject containing a text and a PFFile.
PFObject *post = [PFObject objectWithClassName:@"Posts"];
post[@"description"] = self.Photodescription.text;
NSData *picture = UIImageJPEGRepresentation(self.capturedPicture, 0.5f);
post[@"picture"] = [PFFile fileWithName:@"thumbnailPicture.png" data:picture];
I would like to get progress of upload in order to display a progression bar. The following function only works for PFFile.
[post[@"picture"] saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
}progressBlock:^(int percentDone) {
// Update your progress spinner here. percentDone will be between 0 and 100.
NSLog(@"%i", percentDone);
}];
Is there a way to do the same for a PFObject?