Is there a way to upload a PDF file to a server using the $cordovaFileTransfer plugin? I currently have an input field like this:
<input type="file" onchange="angular.element(this).scope().fileNameChanged(this)">
How can I retrieve the pathForFile in this scenario?
$cordovaFileTransfer.upload(url, pathForFile, options).then(function(result) {
alert('Your image has been successfully uploaded');
},
function(erro)
{
alert("Failed uploading image on server")
});