简体   繁体   中英

Amazon s3 bucket image access issue: Access Denied

I am getting the following error on putting the image src

在此处输入图片说明

I am using following modules to upload an image in node

aws = require('aws-sdk'),
multer = require('multer'),
multerS3 = require('multer-s3'),

Image is uploading successfully in the bucket but when I put the same url in <img src="https://meditationimg.s3.us-east-2.amazonaws.com/profilepic/1507187706799Penguins.jpg" /> it returns the above error

Anyone who knows the solution??

No Such Key is S3's way of saying "404 Not Found."

The request was authorized and syntactically valid, but there's no file in the bucket at the specified path.

You may want to inspect the contents of your bucket from the AWS console.

Make sure you access image using the same case as it was uploaded and is stored on S3.(Generally it should be lower case.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM