I can see in the Firebase Storage docs how to put files into the root bucket with
firebase.storage().ref('foldername/filename.jpg').put(file)
How do I put files into an existing Firebase Storage bucket (not the root bucket)? I'm creating a web app with JavaScript.
It eventually occurred to me to look at the configuration that initialized the app. That is where we set the bucket name. It can be changed to any bucket as needed (not just the root bucket). This prompts the question - what value do buckets actually provide if we are constrained to a single bucket per app? - Multiple Firebase Storage Buckets in One App .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.