- I am able to download the url from the original uploaded file
- I am not able to download the url from the files that are created by the image resize extention.
//making a ref beforehand
const ref = db.collection("impressions").doc().id;
//upload the original file
const bucket = await firebase.storage().ref("impressions/" + ref).put(image);
//this works but I do not need it
const downloadUrl = await firebase.storage().ref("impressions/" + ref).getDownloadURL();
//trying to retrieve the downloadUrl from the files that are most likely still in the process of being created by the image resize extention?
//the ref's are correct
const downloadUrl_image = await firebase.storage().ref("impressions/" + ref + "_1000x1000").getDownloadURL();
const downloadUrl_thumb = await firebase.storage().ref("impressions/" + ref + "_50x50").getDownloadURL();
How can I get the download url from the resized images? Is there an event I can listen to? Or do I need to make my own function?
Thank you for the help,
Matthias