Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xhr = new XMLHttpRequest();
- xhr.open('POST', '//:8081/file_upload');
- xhr.onload = function () {
- if (xhr.status === 200 && xhr.readyState === 4) {
- console.log(this.response);
- }
- };
- xhr.send(new FomData(document.getElementById('uploader'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement