Hi ?
I am uploading files to firebase. And now I want to have the url of the
images available to me when i upload.
I am doing this:
let storageRef = firebase.storage().ref();
let storageTask = storageRef.child(`${this.baseUrl}/${this.seletedFile.name}
`)
.put(this.seletedFile);
storageTask.on(firebase.storage.TaskEvent.STATE_CHANGED,
(snapshot)=>{
this.urlDownload=storageTask.snapshot.ref.getDownloadURL();
console.log(this.urlDownload); //
});
but it retuns A {a: 0, i: undefined, c: A, b: null, f: null, …}
a: 2
b: null
c: null
f: null
g: false
h: false
i: "https://imageUrl............."
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.