async upload() {
    let response;
    if (this._uploadAction) {
      response = await this._doUpload();
      if (! (response.status >= 200 && response.status < 300)) {
        throw `'upload' action failed with HTTP ${response.status}`;
      }
    }

    if (this._verifyAction) {
      response = await this._doVerify();
      if (response.status !== 200) {
        if (response.message) {
          throw response.message
        } else {
          throw `'verify' action failed with HTTP ${response.status}`;
        }
      }
    }

    return true;
  }
/**
   * Upload the file to storage, using the protocol specified by the
   * transfer adapter
   *
   * @returns {Promise<boolean>}
   */
Upload the file to storage, using the protocol specified by the
transfer adapter

@returns {Promise}
Upload the file to storage using the protocol specified by the transfer adapter @returns { Promise }
async upload() {
    let response;
    if (this._uploadAction) {
      response = await this._doUpload();
      if (! (response.status >= 200 && response.status < 300)) {
        throw `'upload' action failed with HTTP ${response.status}`;
      }
    }
    if (this._verifyAction) {
      response = await this._doVerify();
      if (response.status !== 200) {
        if (response.message) {
          throw response.message
        } else {
          throw `'verify' action failed with HTTP ${response.status}`;
        }
      }
    }
    return true;
  }
async upload ( ) { let response ; if ( this . _uploadAction ) { response = await this . _doUpload ( ) ; if ( ! ( response . status >= 200 && response . status < 300 ) ) { throw ` ${ response . status } ` ; } } if ( this . _verifyAction ) { response = await this . _doVerify ( ) ; if ( response . status !== 200 ) { if ( response . message ) { throw response . message } else { throw ` ${ response . status } ` ; } } } return true ; }
Upload the file to storage, using the protocol specified by the
 transfer adapter
Upload the file to storage using the protocol specified by the transfer adapter