Skip to content

Instantly share code, notes, and snippets.

@alvnrapada
Last active August 20, 2020 02:43
Show Gist options
  • Save alvnrapada/19a275fb71a4bdefa7ebab6b35274322 to your computer and use it in GitHub Desktop.
Save alvnrapada/19a275fb71a4bdefa7ebab6b35274322 to your computer and use it in GitHub Desktop.
_sendRequest() {
const data = new FormData()
this.loader.file.then(result => {
data.append('file', result)
this.xhr.send(data)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment