jQuery FileUpload doesn't trigger 'done'
<p>I use <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow">jQuery-File-Upload</a> plugin. I wrote a simple code to test it - and it works, but not without problems. It doesn't trigger <code>done</code>, even if the file is uploaded and progress bar reached its end.</p>

<p>Here's the code:</p>

<pre><code>$('#file_file').fileupload({
    dataType: 'json',
    autoUpload: true,
    add: function (e, data) {
        data.context = $('&lt;p/&gt;').text('Uploading...').appendTo(document.body);
        data.submit();
    },
    progressall: function (e, data) {
        var progress = parseInt(data.loaded / data.total * 100, 10);
        $('#progress .bar').css(
            'width',
            progress + '%'
        );
    },
    done: function (e, data) {
        alert('Done');
    }
});
</code></pre>

<p>My input is as simple as that:</p>

<pre><code>&lt;input type="file" id="file_file" name="file[file]" /&gt;
</code></pre>
