jQuery FileUpload doesn't trigger 'done'
问题 I use jQuery-File-Upload plugin. I wrote a simple code to test it - and it works, but not without problems. It doesn't trigger done , even if the file is uploaded and progress bar reached its end. Here's the code: $('#file_file').fileupload({ dataType: 'json', autoUpload: true, add: function (e, data) { data.context = $('<p/>').text('Uploading...').appendTo(document.body); data.submit(); }, progressall: function (e, data) { var progress = parseInt(data.loaded / data.total * 100, 10); $('