Blueimp jQuery upload configuration -
i have configured blueimp upload progress bar , it's worked, message 'uploading' not changing 'upload finished'. thanks
$(function () { $('#fileupload').fileupload({ datatype: 'json', add: function (e, data) { data.context = $('<button/>').text('upload') .appendto(document.body) .click(function () { data.context = $('<p/>').text('uploading...').replaceall($(this)); data.submit(); }); }, done: function (e, data) { data.context.text('upload finished.'); }, progressall: function (e, data) { var progress = parseint(data.loaded / data.total * 100, 10); $('#progress .bar').css('width',progress + '%'); } }); });
Comments
Post a Comment