Skip to content

Make the putS3ObjectRequest public to allow for further customization #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions OWS3Client/OWS3Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,20 @@
cacheControl:(NSString*)cacheControl
success:(void (^)(S3PutObjectResponse *responseObject))success
failure:(void (^)(NSError *error))failure;

/**
Submits an S3PutObjectRequest to Amazon S3 using forms

@param request The S3PutObjectRequest to submit to Amazon.
@param acl Optional. If unset it uses the global value for acl which defaults to public-read. You probably want either public-read or private. For more info check out S3CannedACL.h in aws-sdk-ios.
@param cacheControl Optional. Can be useful for frequently-changing objects behind Cloudfront.
@param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes a single argument: the response object from the server.
@param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a single argument: the `NSError` object describing error that occurred.
*/
- (void) putS3ObjectRequest:(S3PutObjectRequest*)request
acl:(NSString*)acl
cacheControl:(NSString *)cacheControl
success:(void (^)(S3PutObjectResponse *responseObject))success
failure:(void (^)(NSError *error))failure;

@end