I am trying to delete uploaded image files with the AWS-SDK-Core Ruby Gem.
I have the following code:
require \'aws-sdk-core\'
def pull_picture(pict
I was facing a similar error because the bucket was in region us-west-2
and the URL pattern had bucketname in the path. Once, I changed the URL pattern to have bucketname as URL subdomain to grab the files and it worked.
For eg previous URL was
https://s3.amazonaws.com/bucketname/filePath/filename
Then I replaced it as
https://bucketname.s3.amazonaws.com/filePath/filename