Get progress of an JQuery AJAX request
        
        
            
I use this code:
    var formData = new FormData();
    for (var i = 0; i < files.length; i++) {
        var file = files[i];
        formData.append('files[]', file, file.name);
    }
    $.ajax({
        url: '/url',
        // dataType: 'json',
        type: 'POST',
        // Form data
        data: formData,
        // Tell jQuery not to process data or worry about content-type
        // You *must* include these options!
        en