I have difficulties in understanding the progress-bar functionality of the jquery-file-upload.
What is meant by the following snippet?
.on('fileuploadprogressall', function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$('.progress .progress-bar').css('width', progress + '%');
});
The questions are:
How is the progress calculated? Actually, the file name is passed to my
uploadcontroller and I save it immediately. Then how is this progress reported or by whom?What is meant by the line,
parseInt(data.loaded / data.total * 100, 10);
The original link to Jquery File Upload