Replies: 1 comment
-
Created issue for same adonisjs/drive-s3#8 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
With the S3 Driver, we setup a bucket in the environment variables which the driver uses for operations with the S3 class.
My questions is: Can we switch buckets at run time using the S3 Driver?
My use case is that my company has many S3 buckets they use within the codebase, which bucket I am reading and writing to may differ depending on the controller.
I've looked into the docs and the source code and can't find any work arounds as the bucket is fed in from the env vars and stored as a private property.
Any ideas on a workaround? Is there anything I missed? I'd be happy to contribute to the docs if there is a workaround. Many other frameworks have this option with their file storage options and I could see it being a pain while migrating to Adonis.
Thanks for any feedback!
Beta Was this translation helpful? Give feedback.
All reactions