Hello Adam,
You have such functions
function sendProfile() {
toast("Profile Called: " + localStorage.getItem("TEMP_profile_url"));
var ft = new FileTransfer();
ft.upload(localStorage.getItem("TEMP_profile_url"), uri, win, fail, options);
}
function sendBackground() {
toast("Called " Background");
var ft2 = new FileTransfer();
ft2.upload(localStorage.getItem("TEMP_background_url"), uri, win2, fail, options);
}
It is not correct to override the variables ft and ft2. You have created them above. If I remove the lines
var ft = new FileTransfer();
and
var ft2 = new FileTransfer();
and call the appropriate function, then I have everything running on Android 4.2.2
Sometimes there are errors with different codes. I don't know why, maybe the errors of the Internet, maybe something else. But if I send the same file, everything works. I recommend for transfer errors trying to send again the same file and everything will work fine.