Hello,
I have been stuck for 3 days trying to upload an image to my firebase storage. I keep getting a “Network request failed” error and literally dont know what to do.
Here is my code
async writeUserData() {
const response = await fetch(this.state.image);
const blob = await response.blob();
firebase.storage().ref().child("image/test");
return ref.put(blob).then(()=>{
alert("success");
}).catch((error)=>{
alert(error);
});
}
this.state.image holds the image uri