Downloading images using cordova.file into dataDirectory. I am saving files into internal app folder. In the emulator I am able to see the downloaded files but on real device I am not able to see the downloaded file. This is my path look like
not able to see this image into app folder.
$scope.Download = function () {
var FileURL = appService.downloadFiles($scope.selectedFile.FileKey);
var targetPath = cordova.file.dataDirectory + "ChatApp/" + $scope.selectedFile.FileName;
var trustHosts = true;
var options = {};
$cordovaFileTransfer.download(FileURL, targetPath, options, trustHosts)
.then(function (result) {
alert('file downloaded successfully');
console.log(result);
refreshMedia.refresh(targetPath);
}, function (err) {
console.log(err);
}, function (progress) {
console.log(progress);
});
};
}
Does it required any permission to create folder inside cordova.file.dataDirectory. How I see this file inside the internal app folder.