Retrieve multiple photos under a node from Firebase Storage

前端 未结 2 1156
礼貌的吻别
礼貌的吻别 2020-12-18 16:57

I have a CollectionView that I am using images from Firebase Storage to fill. I store the images under \'userId\' node. I want to check the files existence in bulk that are

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-18 17:35

    Currently there's no bulk or batched upload/download to/from Firebase Storage--I think there are too many question here: would we zip the files up and store them that way, would we returned a zipped bundle, etc. Would we just return an array of download URLs, or appropriate data?

    Our solution to the problem of listing and downloading multiple files is to upload them individually and store the URLs in another database (say the Firebase Realtime Database), which you can then sync and use to download each file individually (or you store the download files and use a tool like SDWebImage to download or cache the appropriate URLs).

    See https://www.youtube.com/watch?v=xAsvwy1-oxE&feature=youtu.be for an example of how we did this.

提交回复
热议问题