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
rootoption, 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
/mediaprefixed folder. Storing and converting media works fine. However, when I want to download a media file using theStoragefacade like the following, it fails:The results of the
getPath()is something like this:The
mediapart of the path that is returned is the problem. Since the disk already uses arootpath, the download fails. It's basically usingmedia/media/173/GMbllF6nULTgFqjbdgL0JCpp9bYg9OF0ndJB86qn.jpegbecause it's already in therootof 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