File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
firebase-storage/src/androidMain/kotlin/dev/gitlive/firebase/storage Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,23 +85,23 @@ public actual class StorageReference(internal val android: com.google.firebase.s
85
85
if (metadata != null ) {
86
86
android.putFile(file.uri, metadata.toStorageMetadata()).await().run {}
87
87
} else {
88
- android.putFile(file.uri).await().run {}
88
+ android.putFile(file.uri, FirebaseStorageMetadata ().toStorageMetadata() ).await().run {}
89
89
}
90
90
}
91
91
92
92
public actual suspend fun putData (data : Data , metadata : FirebaseStorageMetadata ? ) {
93
93
if (metadata != null ) {
94
94
android.putBytes(data.data, metadata.toStorageMetadata()).await().run {}
95
95
} else {
96
- android.putBytes(data.data).await().run {}
96
+ android.putBytes(data.data, FirebaseStorageMetadata ().toStorageMetadata() ).await().run {}
97
97
}
98
98
}
99
99
100
100
public actual fun putFileResumable (file : File , metadata : FirebaseStorageMetadata ? ): ProgressFlow {
101
101
val android = if (metadata != null ) {
102
102
android.putFile(file.uri, metadata.toStorageMetadata())
103
103
} else {
104
- android.putFile(file.uri)
104
+ android.putFile(file.uri, FirebaseStorageMetadata ().toStorageMetadata() )
105
105
}
106
106
107
107
val flow = callbackFlow {
You can’t perform that action at this time.
0 commit comments