Skip to content
This repository

AFNetworking Client for the Amazon S3 API

branch: master


AFAmazonS3Client is an AFHTTPRequestOperationManager subclass for interacting with the Amazon S3 API.

As the S3 API returns XML responses, you may find it useful to set AFOnoResponseSerializer as the response serializer.

Example Usage

AFAmazonS3Manager *s3Manager = [[AFAmazonS3Manager alloc] initWithAccessKeyID:@"..." secret:@"..."];
s3Manager.region = AFAmazonS3USWest1Region;
s3Manager.bucket = @"my-bucket-name";

[s3Manager postObjectWithFile:@"/path/to/file"
                     progress:^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) {
                        NSLog(@"%f%% Uploaded", (totalBytesWritten / (totalBytesExpectedToWrite * 1.0f) * 100));
                      success:^(id responseObject) {
                        NSLog(@"Upload Complete");
                      failure:^(NSError *error) {
                         NSLog(@"Error: %@", error);


Mattt Thompson


AFAmazonS3Client is available under the MIT license. See the LICENSE file for more info.

Something went wrong with that request. Please try again.