You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/STORAGE.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,11 @@ the relevant lines to add the SDK's to your app in
13
13
14
14
Just uncomment the relevant lines (one for each platform) to add the SDK's to your app.
15
15
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.
19
19
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,
21
21
or pass it as a property any time you're using a storage feature.
22
22
In theory the former is a little more efficient because it's cached by the plugin.
23
23
@@ -64,7 +64,7 @@ You can either pass in a full local path to a file, or (as a convenience) use th
64
64
65
65
// now upload the file with either of the options below:
66
66
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)
68
68
bucket:'gs://n-plugin-test.appspot.com',
69
69
// the full path of the file in your Firebase storage (folders will be created)
0 commit comments