code: function (e, data) {
                  var that = $(this).data('blueimp-fileupload') ||
                          $(this).data('fileupload'),
                      getFilesFromResponse = data.getFilesFromResponse ||
                          that.options.getFilesFromResponse,
                      files = getFilesFromResponse(data),
                      template,
                      deferred;
                  if (data.context) {
                      data.context.each(function (index) {
                          var file = files[index] ||
                                  {error: 'Empty file upload result'},
                              deferred = that._addFinishedDeferreds();
                          that._transition($(this)).done(
                              function () {
                                  var node = $(this);
                                  template = that._renderDownload([file])
                                      .replaceAll(node);
                                  that._forceReflow(template);
                                  that._transition(template).done(
                                      function () {
                                          data.context = $(this);
                                          that._trigger('completed', e, data);
                                          that._trigger('finished', e, data);
                                          deferred.resolve();
                                      }
                                  );
                              }
                          );
                      });
                  } else {
                      template = that._renderDownload(files)
                          .appendTo(that.options.filesContainer);
                      that._forceReflow(template);
                      deferred = that._addFinishedDeferreds();
                      that._transition(template).done(
                          function () {
                              data.context = $(this);
                              that._trigger('completed', e, data);
                              that._trigger('finished', e, data);
                              deferred.resolve();
                          }
                      );
                  }
              }
docs: Callback for successful uploads: