Created
April 2, 2014 02:30
-
-
Save ethanbing/9927019 to your computer and use it in GitHub Desktop.
AFNetwork上传图片
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AFHTTPRequestOperation * operation = [_AFManager POST:[_baseURL stringByAppendingString:MCSetavatarInterface] parameters:dic constructingBodyWithBlock:^(id<AFMultipartFormData> formData) { | |
[formData appendPartWithFileURL:[dic objectForKey:@"url"] name:@"avatar" error:nil]; | |
} success:^(AFHTTPRequestOperation *operation, id responseObject) { | |
} failure:^(AFHTTPRequestOperation *operation, NSError *error) { | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment