UIImage *im = [UIImageimageNamed:@"232323.jpg"];//通过path图片路径获取图片
NSURL *url = [NSURLURLWithString:@"url"];
ASIFormDataRequest *request = [ASIFormDataRequestrequestWithURL:url];
[request setPostValue:@"Ben"forKey:@"first_name"];
[request setPostValue:@"Copsey"forKey:@"last_name"];
[request setFile:@"/Users/apple/Desktop/232323.jpg"forKey:@"upfile"];
[request addData:imageDatawithFileName:@"232323.jpg andContentType:@"image/jpeg"forKey:@"upfile"];
[requestsetRequestMethod:@"POST"];
[request startAsynchronous];
[requestrelease];