This question is locked. New answers and comments are not allowed.
Hello,
I am trying to access local files in my application but I can't get it to load a file system handler. It always fails on the file system request. Here is a piece of code:
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFileSystem, loadFailure);
}
function gotFileSystem(fileSystem) {
}
function loadFailure(error) {
console.log("File system request error");
}
This always end up in the failure handler method.
Something that I found really strange is that I am also not able to run the sample-file sample that Telerik provides us on Git (https://github.com/Icenium/sample-file). It fails on the exact same instruction. Does recent Icenium or Cordova updates broke down the file API?
I am trying to access local files in my application but I can't get it to load a file system handler. It always fails on the file system request. Here is a piece of code:
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFileSystem, loadFailure);
}
function gotFileSystem(fileSystem) {
}
function loadFailure(error) {
console.log("File system request error");
}
This always end up in the failure handler method.
Something that I found really strange is that I am also not able to run the sample-file sample that Telerik provides us on Git (https://github.com/Icenium/sample-file). It fails on the exact same instruction. Does recent Icenium or Cordova updates broke down the file API?