_onUploadProgress(progressEvent) {
    if (! this._externalProgressCallback) {
      return;
    }
    let loaded = this._bytesUploaded;
    let total = this._bytesTotal;
    if (progressEvent.lengthComputable) {
      loaded += progressEvent.loaded;
    }

    const realProgress = new ProgressEvent('ProgressEvent', {
      lengthComputable: true,
      loaded,
      total,
    });
    this._externalProgressCallback(realProgress);
  }
/**
   * Progress event handler
   *
   * This is passed as the progress handler for Axios, and is in turn
   * responsible for calling the passed in progress callback with data that
   * will mimic the native progress event but will represent progress taking
   * into account all parts to be uploaded
   *
   * @param {ProgressEvent} progressEvent
   * @private
   */
Progress event handler
This is passed as the progress handler for Axios, and is in turn
responsible for calling the passed in progress callback with data that
will mimic the native progress event but will represent progress taking
into account all parts to be uploaded

@param {ProgressEvent} progressEvent
@private
Progress event handler This is passed as the progress handler for Axios and is in turn responsible for calling the passed in progress callback with data that will mimic the native progress event but will represent progress taking into account all parts to be uploaded @param { ProgressEvent } progressEvent @private
_onUploadProgress(progressEvent) {
    if (! this._externalProgressCallback) {
      return;
    }
    let loaded = this._bytesUploaded;
    let total = this._bytesTotal;
    if (progressEvent.lengthComputable) {
      loaded += progressEvent.loaded;
    }
    const realProgress = new ProgressEvent('ProgressEvent', {
      lengthComputable: true,
      loaded,
      total,
    });
    this._externalProgressCallback(realProgress);
  }
_onUploadProgress ( progressEvent ) { if ( ! this . _externalProgressCallback ) { return ; } let loaded = this . _bytesUploaded ; let total = this . _bytesTotal ; if ( progressEvent . lengthComputable ) { loaded += progressEvent . loaded ; } const realProgress = new ProgressEvent ( 'ProgressEvent' , { lengthComputable : true , loaded , total , } ) ; this . _externalProgressCallback ( realProgress ) ; }
Progress event handler
 This is passed as the progress handler for Axios, and is in turn
 responsible for calling the passed in progress callback with data that
 will mimic the native progress event but will represent progress taking
 into account all parts to be uploaded
Progress event handler This is passed as the progress handler for Axios and is in turn responsible for calling the passed in progress callback with data that will mimic the native progress event but will represent progress taking into account all parts to be uploaded