Search code examples
iosiphoneamazon-s3aws-sdkawss3transferutility

iOS AWS S3 Transfer Utility not uploading


I've implemented this tutorial exactly, and i'm able to successfully upload an image to a s3 bucket using the uploadData method (the completion handler block runs with error=nil). My problem is that I can't see the file in the bucket when i'm looking through the AWS console, so I'm not sure if the image was uploaded successfully and due to wrong permissions or something like that I can't find it or if the image was not really uploaded.

Any idea what's wrong ?

Edit -

I've added permissions to the S3 bucket in the role policy of the new Cognito pool id that I've created for the client authentication purposes, but still no help.

Edit 2 - I've also opened permissions on the bucket itself to everyone.


Solution

  • Make sure your bucket was created in the same region as your Cognito pool ids.