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.
> NOTE: since plugin version 6.2.0 you have to use `firebase.storage.xxx` instead of `firebase.xxx`, because I've extracted storage-related functions into a separate module.
3
4
4
5
## Enabling Storage
5
6
Since plugin version 3.4.0 you can use Firebase _Storage_ features.
@@ -62,7 +63,7 @@ You can either pass in a full local path to a file, or (as a convenience) use th
62
63
var logoPath = appPath +"/res/telerik-logo.png";
63
64
64
65
// now upload the file with either of the options below:
65
-
firebase.uploadFile({
66
+
firebase.storage.uploadFile({
66
67
// optional, can also be passed during init() as 'storageBucket' param so we can cache it (find it in the Firebase console)
67
68
bucket:'gs://n-plugin-test.appspot.com',
68
69
// the full path of the file in your Firebase storage (folders will be created)
@@ -129,7 +130,7 @@ In this example we'll download the previously uploaded file to a certain path on
129
130
var localLogoFile =documents.getFile("telerik-logo-downloaded.png");
130
131
131
132
// now download the file with either of the options below:
132
-
firebase.downloadFile({
133
+
firebase.storage.downloadFile({
133
134
// optional, can also be passed during init() as 'storageBucket' param so we can cache it
134
135
bucket:'gs://n-plugin-test.appspot.com',
135
136
// the full path of an existing file in your Firebase storage
@@ -179,7 +180,7 @@ In this example we'll determine the remote URL of the previously uploaded file.
179
180
<summary>Native API</summary>
180
181
181
182
```js
182
-
firebase.getDownloadUrl({
183
+
firebase.storage.getDownloadUrl({
183
184
// optional, can also be passed during init() as 'storageBucket' param so we can cache it
184
185
bucket:'gs://n-plugin-test.appspot.com',
185
186
// the full path of an existing file in your Firebase storage
@@ -217,7 +218,7 @@ You can pass in remote file path to delete it.
217
218
<summary>Native API</summary>
218
219
219
220
```js
220
-
firebase.deleteFile({
221
+
firebase.storage.deleteFile({
221
222
// optional, can also be passed during init() as 'storageBucket' param so we can cache it
222
223
bucket:'gs://n-plugin-test.appspot.com',
223
224
// the full path of an existing file in your Firebase storage
0 commit comments