Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] AWS S3 Extension doesn't upload images correctly #692

Open
casank25 opened this issue Feb 12, 2025 · 0 comments
Open

[BUG] AWS S3 Extension doesn't upload images correctly #692

casank25 opened this issue Feb 12, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@casank25
Copy link

Describe the bug
After installing the AWS S3 extension and uploading the product image, the image fails to load and returns ERR_CERT_COMMON_NAME_INVALID error. There are multiple issues when uploading images.

  1. AWS does not provide SSL certificates for bucket-specific urls and Evershop extension doesn't use generic aws s3 url which are ok with HTTPS.
  2. When uploading the image, there is missing param acl: public-read so that images can be available online
  3. the Content-Type is set to application/octet-stream which will download the picture as a file instead of rendering it on the screen.
  4. There is no option to set any settings to correct this or to use Cloudfront.

There's no documentation that explains how to go around this and properly set configure the s3 extension.

To Reproduce
Steps to reproduce the behavior:

  1. Login to dashboard
  2. Create New Product
  3. Under Media upload the image
  4. Image uploads but doesn't display

Expected behavior
The product image should display in the dashboard

Background (please complete the following information):

  • NodeJS Version 20
  • Postgres Version 16.4
  • EverShop Version 1.2.2
  • OS: [e.g. Window, Ubuntu, Mac-OS] Ubuntu
  • Browser [e.g. Chrome, Safari] ANY

Additional context
Add any other context about the problem here.

@treoden treoden added the bug Something isn't working label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants