Issue
I am storing profile images in firebase storage for all registered users and storing the download url:
storageReference.getDownloadUrl()
as an attribute of that user in the database. If the said user updates his image at the same storage reference, does that mean I've to update the download url as well or does it remain the same regardless of the updation? I'm not sure what other details I need to give here so feel free to ask for more information, Thanks.
Solution
When you replace the file in Firebase Storage it changes permission and also the public download URL. That means, as you asumed, that you need to update the donwloadURL every time you change the image even if the filename and path stay the same.
Answered By - Tarik Huber
Answer Checked By - Cary Denson (JavaFixing Admin)