title: Get Download URL from file uploaded with Cloud Functions for Firebase
body: <p>After uploading a file in Firebase Storage with Functions for Firebase, I'd like to get the download url of the file.</p>
  
  <p>I have this :</p>
  
  <pre><code>...
  
  return bucket
      .upload(fromFilePath, {destination: toFilePath})
      .then((err, file) =&gt; {
  
          // Get the download url of file
  
      });
  </code></pre>
  
  <p>The object file has a lot of parameters. Even one named <code>mediaLink</code>. However, if I try to access this link, I get this error :</p>
  
  <blockquote>
    <p>Anonymous users does not have storage.objects.get access to object ...</p>
  </blockquote>
  
  <p>Can somebody tell me how to get the public download Url?</p>
  
  <p>Thank you</p>