return the download URL of a file uploaded to firebase

后端 未结 3 1811
攒了一身酷
攒了一身酷 2021-01-23 04:41

Is there a simple way to get the download URL of a file uploaded to Firebase?

(I\'ve tried playing around with the snapshot returned by my upload function and couldn\'

3条回答
  •  抹茶落季
    2021-01-23 05:12

    To get the Url created by default from the snapshot you can use downloadURL, meaning snapshot.downloadURL.

    Remember to always keep tracking the progress of the upload by using .on('state_changed'), Documentation here.

提交回复
热议问题