Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function processImages() {
- alert(dropped_file.files.length);
- for (var x = 0; x < dropped_file.files.length; x++) {
- var xmlhttp = new XMLHttpRequest();
- xmlhttp.onreadystatechange = function() {
- if (this.readyState == 4 && this.status == 200) {
- alert("success");
- }
- };
- xmlhttp.open("POST", "uploadToMercer.cfm", true);
- xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
- xmlhttp.send(dropped_file.files[x]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement