Returning the $media is not working depending on AWS bucket #3771
Unanswered
giovanniledda
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
in my Controller I'm returning the media file directly, as usual:
The disk is "s3".
Now, let's assume that I'm using an S3 bucket "media-1" connected with a Cloudfront distribution...nothing special.
When I upload, everything goes well (notice that I'm inspecting the media object with ray() and everything is fine: the file is in the S3 where it belongs...and I can see it if I log into my AWS console).
Unfortunately, when I try to download (return $mediaItem) it started to show this error:
The (not so much) fun fact is that if I switch to another S3 bucket, similar to the previous one...then the error disappears and I can regularly download the file as I used to.
Do I have to open an issue for this?
Beta Was this translation helpful? Give feedback.
All reactions