Software Archive
Read-only legacy content
17061 Discussions

Accessing the www-folder via File-API leads to an error

Tom_R_4
Beginner
382 Views

Hi there,

on android I'm trying to get hold of a json file that I've stored in the www folder like so:

window.resolveLocalFileSystemURL('file:///' + cordova.file.applicationDirectory + 'www/my_asset_folder', success, fail);

However, I'm encountering the issue described under

https://issues.apache.org/jira/browse/CB-6428

Does anyone know a workaround for this on Intel XDK. We've tried both FilePlug 1.3.2 and 2.0.0 without success.

Any help would be appreciated.

0 Kudos
1 Reply
Anusha_M_Intel1
Employee
382 Views

Hi Tom,

Please refer to this stackoverflow posting: http://stackoverflow.com/questions/21321335/intel-xdk-directory-browsing

The second answer by xmnboy should give you a clue on how to go about this. His answer illustrates how to play a media file but it sounds like what you are looking for.

0 Kudos
Reply