I have been trying to get the download links for all the images stored in my firebase storage bucket but i haven't been successful in doing so. I can manually retrieve the download link for 1 image but not all the images.
function getlink(){
var storage = firebase.storage();
var gsReference = storage.refFromURL("bucketLink");
gsReference.child('/53233').getDownloadURL().then(function(url) {
// This can be inserted into an <img> tag
// This can also be downloaded directly
console.log(url);
}).catch(function(error) {
// Handle errors
console.log("error getting links");
});
}
I want to get all the download links of the images present in the bucket and store them in an array.