Skip to content

Instantly share code, notes, and snippets.

@meshboy
Created December 3, 2018 04:51
Show Gist options
  • Save meshboy/afe39e4f57d9629774233b6940e55596 to your computer and use it in GitHub Desktop.
Save meshboy/afe39e4f57d9629774233b6940e55596 to your computer and use it in GitHub Desktop.
onFileChange(e) {
const files = e.target.files || e.dataTransfer.files;
this.image = files[0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment