我需要帮助在 Firebase 中上传多个图像
for files in local_image:
cloud_img = "images/example" + str(random.randint(1, 18596))
storage.child(cloud_img).put(files, user['idToken'])
imgurl = storage.child(cloud_img).get_url(user['idToken'])
def Convert(string):
li = list(string.split(","))
return li
urllist = imgurl
# print(Convert(urllist))
x = Convert(urllist)
data = {
"name": name,
"email": email,
"phone": phone,
"password": password,
"image": x
}
print(x)
results = db.child("users").push(data, user['idToken'])
我正在使用 python 推送数据,但图像 url 在数据库中仅保存单个 url
请帮我弄清楚