There is this function:
function uploadFile(f, parent) { var xhr = new XMLHttpRequest(); xhr.upload.addEventListener("progress", function (event) { uploadProgress(event, parent); }, false); xhr.upload.addEventListener("load", function (event) { uploadComplete(event, parent); }, false); xhr.upload.addEventListener("error", uploadFailed, false); xhr.upload.addEventListener("abort", uploadCanceled, false); xhr.open("POST", "Upload.aspx", true);
The "f" parameter of the function is the File that appears in the drop event (event.dataTransfer.files [0]) The problem is that I have several elements that trigger the drop event (and the uploadFile function is implicitly called), but the download does not performed in parallel. First, the first fallen file is downloaded, and after the download is complete, only then the second file is downloaded. Why are files not loading in parallel?
Thanks!
VladN source share