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

Commit 47c0f74

Browse files
NativeScript/NativeScript#8548 Firebase Template Bug for android: Metadata cannot be null
1 parent d9cf845 commit 47c0f74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/STORAGE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ You can either pass in a full local path to a file, or (as a convenience) use th
5959
// determine the path to a file in the app/res folder
6060
var logoPath = appPath + "/res/telerik-logo.png";
6161

62+
// if you don't want/need to include metadata, pass in an empty object ({}) to avoid errors
6263
var metadata = {
6364
contentType: "demo/test",
6465
contentLanguage: "fr",
@@ -110,6 +111,7 @@ You can either pass in a full local path to a file, or (as a convenience) use th
110111
const storageRef = firebaseWebApi.storage().ref();
111112
const childRef = storageRef.child("uploads/images/telerik-logo-uploaded.png");
112113

114+
// if you don't want/need to include metadata, pass in an empty object ({}) to avoid errors
113115
const metadata = {
114116
contentType: "demo/test",
115117
contentLanguage: "fr",

0 commit comments

Comments
 (0)