Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created August 2, 2017 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/a3dad409e2fd05e23fbb45c839e85858 to your computer and use it in GitHub Desktop.
Save matthieu-D/a3dad409e2fd05e23fbb45c839e85858 to your computer and use it in GitHub Desktop.
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