Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stopped passing the method and @"/" parameters to the multipart form …

…request factory method instead of the method and path parameters as expected
  • Loading branch information...
commit 43b72ebef4df98426a11b46e365f44b9ac023de6 1 parent e406b67
@veritech veritech authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  AFAmazonS3Client.m
View
2  AFAmazonS3Client.m
@@ -236,7 +236,7 @@ - (void)setObjectWithMethod:(NSString *)method
NSData *data = [NSURLConnection sendSynchronousRequest:fileRequest returningResponse:&response error:&error];
if (data && response) {
- NSMutableURLRequest *request = [self multipartFormRequestWithMethod:path path:@"/" parameters:parameters constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
+ NSMutableURLRequest *request = [self multipartFormRequestWithMethod:method path:path parameters:parameters constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
[formData appendPartWithFileData:data name:@"file" fileName:[path lastPathComponent] mimeType:[response MIMEType]];
}];
Please sign in to comment.
Something went wrong with that request. Please try again.