I'm using AngularFireStorage to build a upload image service. And have a problem.
Can't anybody show me the way to subscribe downloadurl? Here is my service:
This service may be worng?
uploadImage(image): Observable<any> {
const path = ...;
const fileRef = this.afStorage.ref(path);
const task = this.afStorage.upload(path, image);
return task.snapshotChanges().pipe(
finalize(() => {
return fileRef.getDownloadURL()
})
)
}