Get Download URL from file uploaded with Cloud Functions for Firebase

后端 未结 23 1852
春和景丽
春和景丽 2020-11-22 01:19

After uploading a file in Firebase Storage with Functions for Firebase, I\'d like to get the download url of the file.

I have this :

...

return buck         


        
23条回答
  •  遥遥无期
    2020-11-22 02:04

    As of firebase 6.0.0 I was able to access the storage directly with the admin like this:

    const bucket = admin.storage().bucket();
    

    So I didn't need to add a service account. Then setting the UUID as referenced above worked for getting the firebase url.

提交回复
热议问题