I have an AJAX Request in a JavaScript script where I GET a file like that:
$.ajax({ type: "GET", url: "./" + img_type + ".bmp", dataType: "html", timeout: test_timeout, cache: false, success: function(msg) { //some stuff } }); The code itself is correct and works perfectly. Is there a way to know HOW much of the file I've downloaded while the request is still ongoing? I mean, once the request gives to me the success message I know that I've downloaded the entire file, but what if I want to know after two seconds of beginning?