src/index.js
/**
   * Private method to upload file to decentralize storage and get DRI
   * Encrypt document and upload it to decentralize storage.
   * @async
   * @ignore
   * @private
   * @param {File} file Document Blob
   * @return {Promise} axios promies and if success file Store DRI
   *                   (decentralize resource identifier)
   */
Private method to upload file to decentralize storage and get DRI
Encrypt document and upload it to decentralize storage.
Private method to upload file to decentralize storage and get DRI Encrypt document and upload it to decentralize storage .
encryptAndUploadDocument(file) {
    const url = '/api/ddoc/upload';
    return this.http.post(url, {
      encryptedFile: this.encryptWithAES(file),
    });
  }
encryptAndUploadDocument ( file ) { const url = '/api/ddoc/upload' ; return this . http . post ( url , { encryptedFile : this . encryptWithAES ( file ) , } ) ; }
Private method to upload file to decentralize storage and get DRI
 Encrypt document and upload it to decentralize storage.
Private method to upload file to decentralize storage and get DRI Encrypt document and upload it to decentralize storage .