$cordovaFile.copyFile - Error in Success callbackId: Object [object Object] has no method 'getFile'

Hello,

I’m trying to move photos and videos taken with cordova capture with cordova file.copyFile to my app folder and I’m getting Error in Success callbackId: File798966135 : TypeError: Object [object Object] has no method 'getFile'

Is there a way to fix this error or alternative?

Thank you for any tips and tricks

My mistake, I have to set correct path, like: file:/storage/emulated/0/DCIM/Camera and file name. Then it working as expected