On ionic cordova file.copyFile error = FileError { code: 5, message: "ENCODING_ERR" }

318 views Asked by At

My copy File function is here:

 copyFileToLocalDir(namePath, currentName, newFileName) {
    debugger;
    this.file.copyFile(namePath, currentName, this.file.externalDataDirectory, newFileName).then(
      success => {
        debugger;
        this.updateStoredImages(newFileName);
        // this.presentToast('Success while storing file.');
      },
      error => {
        console.log(error);
        // this.presentToast('Error while storing file.');
      });
  }

Please help me to solve this issue

0

There are 0 answers