I was uploading the images thorough wordpress dashboard and was getting the above error. I was able to upload in the local but when i try to upload in the s3 bucket i was not able to. The images were not loading there. Here is the s3 bucket policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::wiley-welmarketing-uat/*"
}
]
}
And here is my IAM policy: IAM policy