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.
As with `uploadFile` you can either pass in a full local path to a file, or (as a convenience) use the `file-system` module that comes shipped with {N} as standard.
72
114
73
115
In this example we'll download the previously uploaded file to a certain path on the local filesystem.
74
116
117
+
<details>
118
+
<summary>Native API</summary>
119
+
75
120
```js
76
121
// init the file-system module
77
-
var fs =require("file-system");
122
+
var fs =require("tns-core-modules/file-system");
78
123
79
124
// let's first determine where we'll create the file using the 'file-system' module
80
125
var documents =fs.knownFolders.documents();
@@ -102,12 +147,37 @@ In this example we'll download the previously uploaded file to a certain path on
If you just want to know the remote URL of a file in remote storage so you can either share it or download the file by any other means than `downloadFile` then use this method.
108
175
109
176
In this example we'll determine the remote URL of the previously uploaded file.
110
177
178
+
<details>
179
+
<summary>Native API</summary>
180
+
111
181
```js
112
182
firebase.getDownloadUrl({
113
183
// optional, can also be passed during init() as 'storageBucket' param so we can cache it
@@ -123,10 +193,29 @@ In this example we'll determine the remote URL of the previously uploaded file.
0 commit comments