Can I upload to another bucket in my Firebase-project with fileRef.put()?

Viewed 131

The page https://firebase.google.com/docs/storage/web/upload-files tells nearly everything about uploading files to Firebase storage from a web client. Except that it has no information about buckets. The examples all uses the default bucket.

If I have another bucket in my Firebase-project, can I upload to that somehow?

1 Answers

Yes, you can do that. There is a bucket import mechanism in the Firebase Storage console hidden behind the three-dots overflow menu. I believe you can then reference it by initializing a new Firebase App instance using initializeApp, providing the name of that bucket in the options.

Related