We have implemented downloading functionality of CS Demo app through static URLS which is working fine.
But when we are running it through dynamic Urls, we are not able to download any file. Kindly Suggest if there is any error in passing the URLs and refer the code. `// FileTransfer.download cordova api.
var fileTransfer = new FileTransfer();
var options = new FileUploadOptions();
options.mimeType = "/";
//var downloadurl=encodeURI("http://www.w3.org/2011/web-apps-ws/papers/");
**var downloadurl=encodeURI("http://172.18.7.102/otcs/cs.exe?func=ll&objId=20255&objAction=download");**
**//var downloadurl=encodeURI("http://www.hdwallpapersimages.com/wp-content/uploads/images/Child-Girl-with-Sunflowers-Images.jpg");**
// Headers
var headers = {'OTCSTicket': content.otagtoken};
options.headers = headers;
fileTransfer.download(downloadurl, localFileSysPath, content.api.onDownloadSuccess, content.api.onDownloadFail, true, options);
} `