code: function(id, name, loaded, total) {
              this._parent.prototype._onProgress.apply(this, arguments);
  
              this._templating.updateProgress(id, loaded, total);
  
              if (total === 0 || Math.round(loaded / total * 100) === 100) {
                  this._templating.hideCancel(id);
                  this._templating.hidePause(id);
                  this._templating.hideProgress(id);
                  this._templating.setStatusText(id, this._options.text.waitingForResponse);
  
                  // If ~last byte was sent, display total file size
                  this._displayFileSize(id);
              }
              else {
                  // If still uploading, display percentage - total size is actually the total request(s) size
                  this._displayFileSize(id, loaded, total);
              }
          }
docs: Update the progress bar & percentage as the file is uploaded