Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
upload() {
if (this.selectedPhoto) {
var uploadTask = firebase.storage().ref().child('images/uploaded.png').put(this.selectedPhoto);
uploadTask.then(this.onSuccess, this.onError);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment