Please use a gs:// URL for your Firebase Storage bucket. #6152
Unanswered
AhmadAl-Ghalban
asked this question in
Q&A
Replies: 1 comment
-
Sounds like your path does not start with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody.
When I upload a file using Android the storage works fine.
The basic functionality example has taken from the official documentation page.
THis is Code =>
import storage from '@react-native-firebase/storage';
export const saveMediaToStorage = (media, path) => new Promise((resolve, reject) => {
const fileRef = storage().ref().child(path)
console.log('media', media);
fetch(media)
.then(response => response.blob())
.then(blob =>
// console.log('blob', blob);
fileRef.put(blob)
).then((task) => {
console.log('Start Task ');
task = storage().ref().getDownloadURL()
console.log('end Task ');
console.log('task', task)
}
).then(downloadUrl => {
console.log('downloadUrl ', downloadUrl)
resolve(downloadUrl)
}
).catch((error) => {
console.log('error SaveMedia is => ', error);
reject()
})
})
the problem is =>
Beta Was this translation helpful? Give feedback.
All reactions