I was wondering if I can save the url that I get from storage in to my database and retrieve the link every time I want the image? Right now, I am calling the following function each time I need to get an image and it is slow. I am just afraid that the link might change depending on where the user is and time?
storage.ref(thisEvent.eventImgInReference).getDownloadURL().then(function (url) {
//here I just add the image url
thisEvent.eventImgLink=url;
//
$scope.$apply();
}).catch(function (error) {
});
Download URLs only change if you revoke the download token in the Firebase Console, so it's totally fine if you store them in your database.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With