Using getPath() with Storage download on S3 with root path #1974
Unanswered
docmattman
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
Uh oh!
There was an error while loading. Please reload this page.
-
Possible bug, but maybe I'm doing something wrong???
I'm using an S3 disk with a
root
option, so I can share a bucket with other disks and have the root prefix for ML:This will ensure that all media goes into the
/media
prefixed folder. Storing and converting media works fine. However, when I want to download a media file using theStorage
facade like the following, it fails:The results of the
getPath()
is something like this:The
media
part of the path that is returned is the problem. Since the disk already uses aroot
path, the download fails. It's basically usingmedia/media/173/GMbllF6nULTgFqjbdgL0JCpp9bYg9OF0ndJB86qn.jpeg
because it's already in theroot
of the S3 disk config.Is this a bug? Or am I doing something wrong? Any advice for this?
Beta Was this translation helpful? Give feedback.
All reactions