title: How to get download url from uploaded files using Firebase
body: <p>Reading the documentation, I found a section talking about how to upload files and get its download link.
  The code to get download link is:</p>
  
  <p><strong>Kotlin</strong></p>
  
  <pre><code>val ref = storageRef.child("images/mountains.jpg")
  uploadTask = ref.putFile(file)
  
  val urlTask = uploadTask.continueWithTask { task -&gt;
      if (!task.isSuccessful) {
          task.exception?.let {
              throw it
          }
      }
      ref.downloadUrl
  }.addOnCompleteListener { task -&gt;
      if (task.isSuccessful) {
          val downloadUri = task.result
      } else {
          // Handle failures
          // ...
      }
  }
  </code></pre>
  
  <p><strong>Java</strong></p>
  
  <pre><code>final StorageReference ref = storageRef.child("images/mountains.jpg");
  uploadTask = ref.putFile(file);
  
  Task&lt;Uri&gt; urlTask = uploadTask.continueWithTask(new Continuation&lt;UploadTask.TaskSnapshot, Task&lt;Uri&gt;&gt;() {
      @Override
      public Task&lt;Uri&gt; then(@NonNull Task&lt;UploadTask.TaskSnapshot&gt; task) throws Exception {
          if (!task.isSuccessful()) {
              throw task.getException();
          }
  
          // Continue with the task to get the download URL
          return ref.getDownloadUrl();
      }
  }).addOnCompleteListener(new OnCompleteListener&lt;Uri&gt;() {
      @Override
      public void onComplete(@NonNull Task&lt;Uri&gt; task) {
          if (task.isSuccessful()) {
              Uri downloadUri = task.getResult();
          } else {
              // Handle failures
              // ...
          }
      }
  });
  </code></pre>
  
  <p>But what is the line I get the download URL?
  Is it the "return ref.getDownloadUrl();"/"ref.downloadUrl"?
  Or the "<code>Uri downloadUri = task.getResult();</code>"/"<code>val downloadUri = task.result</code>"?</p>