How to get progress of File upload in JQuery such that I can update status bar about file upload.
Below is my file upload code using Ajax in JQuery:
$('button').click(function(e) {
var formData = new FormData($('#myform')[0]);
$.ajax({
url: 'FileUploadExample',
type: 'post',
data: formData,
async: true,
cache: true,
contentType: false,
processData: false,
success: function(returndata) {
}
});
});
While googling this issue I cam across jquery.form.min.js plugin which have option uploadProgress.
How can I get progress of upload without using any plugin in JQuery/JavaScript.