I have small bug in my program.
I have firebase Storage in my app. I wanna let the user to upload image to the storage.
the thing is when the user uploads image and then tries to upload another image. what the program does it overwrites the image was uploaded before.
what I want is to avoid "overwrite" when the user wants to upload another image. and keep both images in different file
let currentUser = Auth.auth().currentUser
let StorageRefrenece = Storage.storage().reference()
let posterImageRef =
StorageRefrenece.child("posters").child(currentUser!.uid).child("posterOne.jpg")
Thnx