For POST method, use setPostValue: forKey: with the setdata:. You dont need to do any additional work . Just post the variable along with image.
[request setPostValue:VALUE forKey:KEY];
[request setData:data withFileName:@"profile.jpg" andContentType:@"image/jpeg"
forKey:@"file"];