adding multiple imageUrl entry in realtime db ##kotlin##
Im trying to upload multiple images and store url into firebase realtime db like
imageUrl1 :
imageUrl2:
and so on by using kotlin.
But the entries are getting overridden instead of making different entries.
Please find below the attached code and screenshot of db for the same.
Uploading part :
if (images!!.isNotEmpty()) {
for ((e,item) in images!!.withIndex() ) {
var imageName: StorageReference = storage
.child("Products" + item!!.lastPathSegment + UUID.randomUUID().toString())...