you can view this question in details. anyways when you call ajax request from query where is a function called uploadProgress
you can call and track the status and percentage on file uploading in server. this function accept four parameters event, position, total, percentComplete
example
$.ajax({
beforeSend: function() {
// reset your progress bar here or do anything before making a call to endpoint
},
uploadProgress: function(event, position, total, percentComplete) {
var percentVal = percentComplete + '%';
$('#progressBar').width(percentVal);
},
complete: function(xhr) {
alert(xhr.responseText);
}
});