I have an array of image URLs that looks like this:
["file:///data/user/0/io.ionic.starter/files/1542283317507.jpg",null,
"file:///data/user/0/io.ionic.starter/files/1542283320931.jpg"]
I am attempting to upload this array, named 'final', using the fileTransfer upload function. However, I am encountering an error. Interestingly, the function works fine for individual images outside of the array. How can I successfully upload this array?
fileTransfer.upload(final, url, options).then(
data => {
console.log(data);
this.presentToast("Image uploaded successfully.");
},
err => {
this.presentToast("Error while uploading file.");
}
);
}
Thank you for your assistance!