11-05-2012 09:08 AM
I'm developing using the HTML5 APIs both for playbook and BB10.
To access the filesystem I use window.webkitRequestFileSystem, which works fine in Chrome, but in the playbook that property is not defined.
¿How can I access the HTML filesystem?
Thanks in advance.
11-05-2012 09:15 AM - edited 11-05-2012 09:15 AM
Try this when you're setting up your filesystem
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
Here's a good tutorial on the HTML5 File API that might come in handy: http://net.tutsplus.com/tutorials/html-css-techniq
11-05-2012 09:24 AM
Thank you Chad. That's the tutorial I was following.
None window.requestFileSystem || window.webkitRequestFileSystem exists.
The documentation says that there's no need to declare an extra feature in the config.xml... I'm also using the lastest webworks for playbook.
When I run this code in the playbook it fails on the second line, because window.requestFileSystem is undefined.
¿Is there an example tested in the playbook? The kitchenSink doesn't use this function. I want to use it in order to save private files in the application.