Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #502
    jacob_smith
    Participant

    I can’t display an image uploaded via jetstream profile photo from my Amazon S3 bucket.

    When I try to load the image from a separate tab, I got this error:

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <Error>
    AccessDenied
    <Message>Access Denied</Message>
    <RequestId>ZC68HVGYH73JX7ER</RequestId>
    <HostId>8JQOgNWf5UZLiH5L46AVGfThEjUUbVTKaJA6w/wuJq7kuuYKmfYwIxM93chJKXdJOK+PjGrfaNA=</HostId>
    </Error>

    #505

    There are two possible solutions

    (1) Check that your Amazon S3 bucket policy provides access to public.
    (2) Check that in your config/jetstream.php , the profile_photo_disk is set to s3 and try changing vendor\laravel\jetstream\src\HasProfilePhoto.php where in the methods updateProfilePhoto change storePublicly to store

    https://laracasts.com/discuss/channels/laravel/modify-hasprofilephoto-file-in-jetstream

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.