-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Documentation Request: multi-bucket via StorageBucket injection token #1875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There's an injection token, |
The docs leave me confused - why does it still say |
In app.module.ts we have code snippet like this:
We need to implement dynamic useValue. We'll get the value after login happens. (Ex: 'xyz-2'). |
Not work the current API. Will consider this in the future. |
Hey, Google functions are applicable to a whole bucket, thus, AngularFireStorage needs to be able to access multiple buckets within a project. I figure, the syntax should look like,
storage.bucket({bucketId}).ref().put()
storage.bucket({bucketId}).ref()
ex.
storage.bucket("myCustomId").ref(filepath).delete()
storage.bucket("gs://path").ref(filepath).put() etc.
I have tried switching the environments with the storage bucket as a property in another firebase config, but I have had no success with trying to make it work. I also understand that there is a way to use the Firebase SDK to do so but I'm afraid that importing the entire SDK would increase my bundle size too much. Is there a way to incorporate this into future releases? Is there a way for me to help?
The text was updated successfully, but these errors were encountered: