Skip to content
AFNetworking Client for the Amazon S3 API
Objective-C Ruby
Find file
Latest commit 45c411c Mar 29, 2015 @mattt mattt Merge pull request #84 from greenski/xcode6.3b3-compiler-warning-fix
fixes complier warning in Xcode 6.3 beta 3


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

Example Usage

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

NSString *destinationPath = @"/pathOnS3/to/file.txt";

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


Mattt Thompson


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

Something went wrong with that request. Please try again.