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
This is the best I came up. It is redundant, but the only reasonable solution that worked for me.
await bucket.upload(localFilePath, {destination: uploadPath, public: true}); const f = await bucket.file(uploadPath) const meta = await f.getMetadata() console.log(meta[0].mediaLink)