Giter Club home page Giter Club logo

Comments (12)

conradwt avatar conradwt commented on July 21, 2024

@gavinwilliams Is there any update on this issue?

from afamazons3manager.

dmzza avatar dmzza commented on July 21, 2024

I'm having the same problem.

from afamazons3manager.

marjinn avatar marjinn commented on July 21, 2024

#35

from afamazons3manager.

dmzza avatar dmzza commented on July 21, 2024

I've merged in evoL#1 as well as my own #46 and I now have a working version for PUT requests in my own branch 2.2: https://github.com/dmzza/AFAmazonS3Client/tree/2.2

To use my branch with CocoaPods:

pod 'AFAmazonS3Client', :git => 'https://github.com/dmzza/AFAmazonS3Client', :branch => '2.2'

from afamazons3manager.

conradwt avatar conradwt commented on July 21, 2024

@dmzza Does your version work work with AFNetworking 2.2.x?

from afamazons3manager.

dmzza avatar dmzza commented on July 21, 2024

It was working on AFNetworking 2.1.0, and then I just updated it with CocoaPods to 2.3.0, and it still works. So I assume it works with 2.2.x as well.

from afamazons3manager.

conradwt avatar conradwt commented on July 21, 2024

@dmzza What are the correct headers to use for AFAmazonS3Manager because I'm seeing symbol errors when setting both region and bucket?

from afamazons3manager.

dmzza avatar dmzza commented on July 21, 2024

This is what I'm using:

self.s3Manager = [[AFAmazonS3Manager alloc] initWithAccessKeyID:S3_ACCESS_KEY secret:S3_SECRET];
    [[self.s3Manager requestSerializer] setRegion:AFAmazonS3USStandardRegion];
    [[self.s3Manager requestSerializer] setBucket:@"..."];
    [[self.s3Manager responseSerializer] setAcceptableContentTypes:[NSSet setWithObjects:@"multipart/form-data", @"binary/octet-stream", nil]];

Although I shouldn't need @"multipart/form-data"

from afamazons3manager.

conradwt avatar conradwt commented on July 21, 2024

@dmzza Awesome!!!! I'm guessing the you're importing:

#import <AFAmazonS3RequestSerializer.h>
#import <AFAmazonS3Manager.h>

from afamazons3manager.

dmzza avatar dmzza commented on July 21, 2024

I'm only importing this:

#import <AFAmazonS3Client/AFAmazonS3Manager.h>

That file imports the RequestSerializer.

from afamazons3manager.

conradwt avatar conradwt commented on July 21, 2024

@dmzza Yes, I'm using the same header now after I looked at the headers for the framework. Next, it may be a good idea to update the README with header information as well as which how to set both the bucket and region. Thus, I'll submit a pull request today with these modifications.

from afamazons3manager.

mattt avatar mattt commented on July 21, 2024

Duplicate of #35. Fixed by cc21e90.

from afamazons3manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.