Problem: I want to add photos to the post, it partially works, but the "images" folder is created separately, instead of in a unique folder marked in green
databaseReference = FirebaseDatabase.getInstance().reference.child("posts")
private fun SendLink(url: String) {
val hashMap: HashMap<String, String> = HashMap()
hashMap["link"] = url
databaseReference!!.child("images").push().setValue(hashMap).addOnCompleteListener {
progressDialog!!.dismiss()
choosenImages!!.text = "Succesfully added images."
addImagesBT.visibility = View.GONE
ImageList.clear()
}
}
Question: How to move / create "images" folder as a subfolder of green underlined folder?