Images From My Aws Bucket Not Showing On My Website
I've implemented AWS S3 storage to my Django project. So I just uploaded all my static images to my bucket. However it is not showing up on my site. My HTML for the images are the
Solution 1:
You need to change Content-Type of the uploaded file 'ContentType' =>'image/jpeg'. And, also you need to turn off Block public access.
const uploadFile = new aws.S3.ManagedUpload({
params: {
...uploadParams,
ContentType: 'image/jpeg',
Key: file.name,
Body: fileUploadStream,
},
});
Solution 2:
Add this in your settings.py
file:
AWS_QUERYSTRING_AUTH = False
Post a Comment for "Images From My Aws Bucket Not Showing On My Website"