You can use getDownloadURL , which returns Promise , which, in turn, can be used to detect a "not found" error or process the file if it exists. For instance:
storageRef.child("file.png").getDownloadURL().then(onResolve, onReject); function onResolve(foundURL) {
source share