-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Example doesn't work with newest version: AngularFireUploadTask.downloadURL(); returns undefined #1645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Firebase 5.0 removed downloadUrl from upload task, so we did so too. I'll rework the doc. |
@jamesdaniels thanks for the info. Did they replace it with something else or can't we use this functionality anymore? |
You need to use downloadUrl on the ref.
…On Mon, May 14, 2018, 6:31 PM S E R A Y A ***@***.***> wrote:
@jamesdaniels <https://github.com/jamesdaniels> thanks for the info. Did
they replace it with something else or can't we use this functionality
anymore?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1645 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACvr4oDTTjULjyfeztdQkxPizfo_L_cks5tyi_ggaJpZM4T-C61>
.
|
@jamesdaniels thanks for your advice, this is actually what I tried however, in my case I'm uploading a file and I'd like to get the download url as soon as the file is uploaded. Even if I wait with requesting the file after it was uploaded (I tried wait for the |
@takahser see Jeff's comment #1649 (comment) |
Docs have been updated. |
The table in the updated docs still references |
Version info
Angular: "^5.2.1"
Firebase: "^5.0.2"
AngularFire: "5.0.0-rc.7"
It used to work on earlier versions, e.g.:
"angularfire2": "5.0.0-rc.6",
"firebase": "^5.0.2",
How to reproduce these conditions
See the example Monitoring upload percentage
Expected behavior
On the current version, when uploading a file using
AngularFireStorage.upload(filePath, file)
the downloadUrl of the file can be requested by subscribing toAngularFireUploadTask.downloadURL()
:AngularFireUploadTask.downloadURL().subscribe(console.log) // should log download url
Actual behavior
Instead of returning the URL, the subscription returns
undefined
:AngularFireUploadTask.downloadURL().subscribe(console.log) // logs undefined
The text was updated successfully, but these errors were encountered: