I am using the cordova File plugin to store a picture on the device and then use file transfer to upload it to a remote location. Currently I am trying to store the picture and I run into a TypeError. My code is as shown below. What could be causing this error?
I am running the app on an iPhone 7 plus. I take the picture on the phone, confirm the picture, then I execute the copyFileToLocalDir function. I get the error once the copyFileToLocalDir function is executed. It presents the toast (from this.presentToast(error);) and all it says is TypeError.
I actually decided against storing the picture and uploading it as a reference. Instead i’m saving the URL from the temp storage in a variable and using it to upload the picture. Thanks for your help, @SigmundFroyd, though!