02-13-2012 10:54 PM
Is there any equivalent for Playbook?
Solved! Go to Solution.
02-14-2012 04:25 PM
Unfortunately there doesn't appear to be anything similar to this extension in the Tablet space currently. Seems you would need your own custom control (leveraging WebWorks APIs) or extension (digging down into AIR or AIR > Native) for this at this time.
BlackBerry Development Advisor
06-12-2012 06:46 PM
Just tried the following on my PlayBook:
And it seems to work fairly well for picking out a file. Source available here:
09-25-2012 08:28 AM - edited 09-25-2012 08:32 AM
How can you get the fullPath of a selected file from an HTML5 file input(with multiple attribute) ?
I found this api and it seems that html5 FileEntry has this property, but I can't seem to understand how to use it
Ultimately I want to be able to select multiple files with html5 file input and get for each one the full name and full path.
I'm developing for PlayBook and I know how I could achieve this using the other file api IO, but I want my app to be compatible with BB10 also.
09-26-2012 08:55 AM
In BB10 you can use the filePicker Card to grab a file, and get it's full path. The HTML <input type='file'> you cannot get the full path.
For OS < 10 you'll need a custom extension, available here https://github.com/blackberry/WebWorks-Community-A
For Tablet you'll need to create a custom Air extension.
09-26-2012 10:21 AM
There is a filePicker API in BB10 and it delivered as a part of the latest WebWorks SDK. Basically you can invoke the FilePicker card and get the full path.
Also I am doing a session at BBJam today about it so I will be uploading the code after the session.
09-26-2012 11:26 AM - edited 09-26-2012 11:30 AM
Thanks for your answers.
Unfortunatelly my knowledge in AIR is very limited and I'm not able to create an extension to use with the current Webworks SDK for tablet. I managed to get all the paths for the type of file I need to select(music) using blackberry.io API. My main issue is that I must create some kind of UI that will let the user select the files he wants from the entire list.
I thought that maybe there is a way to achieve what I want by not using separate code for PlayBook 2.0(IO api or custom extension) and BB 10 (invoke cards).
At this address https://developer.blackberry.com/html5/apis/file.h
Anyway, looking forward to your code Nukul
09-26-2012 12:39 PM
Yes, I know I can read, but I want to store the paths to the files, and check if the files still exists before use them.
Another question, not related to the previous one, is there any way that a swf embeded in the app could avoid the usual Flash sandbox system? I want to access local files (by using the above paths), but Flash prevents access to local files when not hosted on a domain.
It would have been nice to have two modes for webworks apps, a hosted mode(run from http://localhost/) and a normal mode, the way it is now (run from file://).