I am uploading a file to firebase bucket with this code
const uplaodTask = await storage.bucket('example.appspot.com').upload('/temp/out.png', {
destination: `/${jobID}/results/${filterName}.png`,
});
How can I get the public url of the uploaded file? I tried the following code but it's not working
uplaodTask.getSignedUrl({
action: 'read',
expires: '03-09-2491'
}).then(signedUrls => {
console.log("URL: ", signedUrls[0])
});