Images are not loading from aws S3

I am doing a Django project. I have hosted my static files on AWS S3.It has been successfully uploaded to it. But,the images are not loading when I run the server. When I inspect the image field it shows:;%20height:40px%22%3E When I double clicked it. It shows this error:

  <Message>Access Denied</Message>


When working with S3 bucket, there is a need to make your resources(files) publicly accessible. You can either do that programmatically at the point of uploading to S3 or from the AWS console. please check how you can enable public access to your files here