This is a migrated thread and some comments may be shown as answers.

Impossible to access file system

5 Answers 74 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lionel
Top achievements
Rank 1
Lionel asked on 11 Mar 2013, 09:52 AM
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?

5 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 11 Mar 2013, 09:57 AM
Hello Lionel,

 Could you please tell me what device, OS version and Cordova version are you running this code on so I can test it locally?

Regards,
Yavor Georgiev
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Lionel
Top achievements
Rank 1
answered on 11 Mar 2013, 10:00 AM
I am using Cordova 2.2 and I am running this in the iOS 6.0 emulator.

Thanks.
0
Yavor Georgiev
Telerik team
answered on 11 Mar 2013, 10:04 AM
Hi Lionel,

 I'm sorry but our simulator doesn't support the Cordova File API yet. You'll have to run this on an actual device for it to work.

Greetings,
Yavor Georgiev
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Lionel
Top achievements
Rank 1
answered on 11 Mar 2013, 10:11 AM
Thanks for your reply,

Is there any place where we can find a list of what part of the API the simulator does not support?

Thanks.
0
Kristina
Telerik team
answered on 13 Mar 2013, 09:38 AM
Hello Lionel,

 
Currently the only APIs that are supported in our Simulator are 

We would really appreciate your feedback, so if you need support for any particular API you could make feature request in our feedback portal.  

Regards,
Kristina
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
Tags
General Discussion
Asked by
Lionel
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Lionel
Top achievements
Rank 1
Kristina
Telerik team
Share this question
or