anacronw / multer-s3

multer storage engine for amazon s3
MIT License
660 stars 190 forks source link

After upload, image not readable #217

Open TimeLord2010 opened 3 months ago

TimeLord2010 commented 3 months ago

Not related to #97 , when I upload a image to s3 using ACL: 'public-read', I get a link to access the file.

But trying to access it in the browser does not work: Screenshot 2024-07-17 at 15 51 20

This certainly is due to the file ACL setting in S3 (if I manually change the public access to "Read", the link works): Screenshot 2024-07-17 at 15 51 53

The issue is that I don't know how to upload this image using this configuration by default. Currently, I guess the way to go would be to make a separate operation in my route handler to change the ACL configuration, but I should have to do this because the multer configuration is set to ACL: 'public-read', right? Am I just understanding things wrong here?