Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function processImages() {
  2.     alert(dropped_file.files.length);
  3.     for (var x = 0; x < dropped_file.files.length; x++) {
  4.         var xmlhttp = new XMLHttpRequest();
  5.         xmlhttp.onreadystatechange = function() {
  6.             if (this.readyState == 4 && this.status == 200) {
  7.                 alert("success");
  8.             }
  9.         };
  10.         xmlhttp.open("POST", "uploadToMercer.cfm", true);
  11.         xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  12.         xmlhttp.send(dropped_file.files[x]);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement