I have a file uploader that works, in that the file and variable are getting uploaded, and the complete handler is getting triggered, when the upload is complete.. however the progress handler is not.. any ideas why not?... regards J
function uploadFile_function(){ var formData = new FormData(); formData.append("var1", "jane"); formData.append("varFile", fileToUpload); var xhr = new XMLHttpRequest(); xhr.open("POST", "upload.php"); xhr.addEventListener("progress", function (ev) { alert('progress'); }, false); xhr.addEventListener("load", function (ev) { alert('complete'); }, false); xhr.send(formData); }