09-28-2012 04:02 PM - edited 09-28-2012 04:03 PM
Before the latest updates, I could read and write to a file on my Dev Alpha by requesting the filesystem, unsandboxing it, then using the line
fs.root.getFile(blackberry.io.sharedFolder + fileName, {create: true}, function (fileEntry) { ... }
to create a file. After the updates though, I get the error "SECURITY_ERR" on that line. In the HTML5 directoryEntry API, it says I don't need anything in my config.xml for this, but is that true? Is that the problem, or is it something else? p.s. I do have <rim: permit>access_shared</rim: permit> in the config.xml, but that's only for unsandboxing.
09-28-2012 04:29 PM
Hello,
Are you sure the file system is really unsandboxed when you run that line?
Can you send me your app? (rtse@rim.com) I can quickly test it out.
Thanks,
Rosa
09-28-2012 04:34 PM
12-10-2012 11:42 PM
As I read in GitHub issue https://github.com/blackberry/BB10-WebWorks-Framew
Is there a way to access filesystem from another view in my app? Will it be permited?
12-11-2012 09:43 AM
you're almost right, this is related to accessing filesystem from the page other than main page, not just file. I'm not too sure if this has been fixed yet with the new releases since this problem came up, but one way to get around it, if's possible for you, is to use HTML5 localstorage. If that doesn't work for you and you're not too far into your project, maybe try switching to BBUI instead, I didn't run into any file system issues using that.