Basically, I want to check if a file exists on a specific location on FB Storage If so then, do some Stuff else some other stuff needs to be executed.
so far I have tried this
const profile_pic = firebase.storageRef
.child(`profile_pics/${uid}/}`)
.getDownloadURL()
.then((url) => {
setProfileImage(url);
})
.catch((err) => {
// show Default userPic
console.log("err >> ", err);
});
This code Resembles the answer here
This Code works Fine BUT BUT BUT It still logs Error on the console.
All I'm Looking for is the best way to get it done without logging Error On console. Any help is Appreciated! Thanks.