title: AFNetworking 2.0 track file upload progress
body: <p>I am relatively new to AFNetworking 2.0.  Using the code snippet below, I've been able to successfully upload a photo to my url. I would like to track the incremental upload progress, but I cannot find an example of doing this with version 2.0.  My application is iOS 7, so I've opted for AFHTTPSessionManager.</p>
  
  <p>Can anyone offer an example of how to modify this snippet to track upload progress?</p>
  
  <pre><code>AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
  
  NSData *imageData = UIImageJPEGRepresentation([UIImage imageNamed:@"myimage.jpg"], 1.0);
  
  [manager POST:@"http://myurl.com" parameters:dataToPost constructingBodyWithBlock:^(id&lt;AFMultipartFormData&gt; formData) {
      [formData appendPartWithFileData:imageData name:@"attachment" fileName:@"myimage.jpg" mimeType:@"image/jpeg"];
  } success:^(NSURLSessionDataTask *task, id responseObject) {
      NSLog(@"Success %@", responseObject);
  } failure:^(NSURLSessionDataTask *task, NSError *error) {
      NSLog(@"Failure %@, %@", error, [task.response description]);
  }];
  </code></pre>