Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2017
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var xhr = new XMLHttpRequest();
  2. xhr.open('POST', '//:8081/file_upload');
  3. xhr.onload = function () {
  4.   if (xhr.status === 200 && xhr.readyState === 4) {
  5.     console.log(this.response);
  6.   }
  7. };
  8. xhr.send(new FomData(document.getElementById('uploader'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement