thaiphan / magento2-s3

Use Amazon S3 as the file storage solution for your Magento 2 application
MIT License
142 stars 95 forks source link

Product image can not upload to S3 bucket #91

Open navuitag opened 2 years ago

navuitag commented 2 years ago

Hi there,

I've got an error when uploading product images to Amazon S3. Can anybody help me to know what is the problem? And how to fix this problem? Thank you so much.

Image was not uploaded. Error executing "PutObject" on "https://amazon-s3-bucket.s3.ap-southeast-1.amazonaws.com/tmp/catalog/product/s/e/Image.png"; AWS HTTP error: Client error: PUT https://amazon-s3-bucket.s3.ap-southeast-1.amazonaws.com/tmp/catalog/product/s/e/Image.png resulted in a 403 Forbidden response:

<?xml version="1.0" encoding="UTF-8"?> 
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>T7RZH9 (truncated...) AccessDenied (client): Access Denied - 

<?xml version="1.0" encoding="UTF-8"?> 
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>T7RZH9R6QAK5F8CH</RequestId><HostId>7/NWN4dNQ1s7DLnJPBnpd1j5xivKflnWeoTp+mGHSfKB6lxGlNoGgp1nnfxXJWAx4C2IANhnIPY=</HostId>
</Error>