Cloudfront + S3 – Access Denied to Anspress

4.45K viewsIssues
0

Hi!

My WP+BP powered site uses AWS S3 for media-storage and AWS Cloudfront for content distribution / delivery. Works fine on the entire site, except for the Anspress part. When trying to post an image in an answer, it does not get uploaded to S3 and served back is a broken image with the error-message: HTTP/1.1 403 Forbidden.

I have checked all permissions and settings of the S3 bucket and the user uploading the image, but I can not figure out the reason for this behavior. Any idea?

Thx, greetings from Vienna.

0

I am not sure about it, but I just tested it on a site running on an AWS instance and it works fine.

You can check here if its returning a correct URL after upload

https://github.com/anspress/anspress/blob/master/includes/class-user.php#L287