Search code examples
amazon-web-servicesapacheamazon-s3amazon-ec2

Why is my image not displaying on my Web page?


enter image description here

^ This is what is displayed when I go to the Website URL, as you can see it doesn't display anything just a broken image.

enter image description here

and then this is my code I inputted for it to display the image under my bucket name 'ronaldhoward'

If anyone knows why my image isn't displaying maybe cause I am using the wrong image input code? Not sure..


Solution

  • Based on the comments.

    The issue was caused by the image not being public. To make entire bucket or multiple objects in the bucket public in read-only mode, the bucket policy outlined in Granting read-only permission to an anonymous user can be used.