Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 58162dc

Browse files
Don't require the 'storageBucket' param for Firebase Storage #842
1 parent 549eac0 commit 58162dc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/STORAGE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ the relevant lines to add the SDK's to your app in
1313

1414
Just uncomment the relevant lines (one for each platform) to add the SDK's to your app.
1515

16-
### Setting the storage bucket
17-
You need to tell Firebase what your storage bucket is. You can retrieve it
18-
from the Firebase console by pressing 'Storage' in the menu.
16+
### Setting the storage bucket (optional since plugin version 6.5.0)
17+
If (in the odd situation) the storage bucket URL you want to use is different than the one in the downloaded config file,
18+
you can tell Firebase what it should use instead.
1919

20-
You can either pass it to the `init()` function as shown below,
20+
In this case, you can either pass it to the `init()` function as shown below,
2121
or pass it as a property any time you're using a storage feature.
2222
In theory the former is a little more efficient because it's cached by the plugin.
2323

@@ -64,7 +64,7 @@ You can either pass in a full local path to a file, or (as a convenience) use th
6464

6565
// now upload the file with either of the options below:
6666
firebase.storage.uploadFile({
67-
// optional, can also be passed during init() as 'storageBucket' param so we can cache it (find it in the Firebase console)
67+
// optional, can be omitted since 6.5.0, and also be passed during init() as 'storageBucket' param so we can cache it (find it in the Firebase console)
6868
bucket: 'gs://n-plugin-test.appspot.com',
6969
// the full path of the file in your Firebase storage (folders will be created)
7070
remoteFullPath: 'uploads/images/telerik-logo-uploaded.png',

0 commit comments

Comments
 (0)