I have created and app in windows and android using the phonegap+jquery mobile. I have a file upload function which is working correctly on android build but in windows build it is showing an error code 3(FileTransferError.CONNECTION_ERR).
My code is as follows :
var options = new FileUploadOptions();
options.fileKey = "file";
options.fileName = 'xxxxxx.mp3';
options.mimeType = 'audio/mpeg3';
var fileFullPath = rootFolderPath+"xxxxxx.mp3";
var params = new Object();
params.songId = 12;
options.params = params;
options.headers = {
Connection: "close"
}
options.chunkedMode = false;
var uploadUrl = "www.myapiurl.com";
var ft = new FileTransfer();
ft.upload(fileFullPath, encodeURI(uploadUrl), winUpload, failUpload, options);
Please anyone help me to sort this out. Thank you all