title: Using Cordova, can I access files via links in JSON file?
body: <p>I am making a web application that builds courses, and gets the data (modules, lessons, including texts, images, audio, video) from a JSON file. </p>
  
  <p>People can exchange courses without using internet. A course is structured in a folder like this:</p>
  
  <pre>course.json<br>./audio<br>./video<br>./documents<br>./images</pre>
  
  <p>It can run fully offline, without server - as long as the data folders are within the application (that is, the html folder). But when the JSON is located elsewhere (say, in Downloads, Bluetooth or Documents), the JSON data itself will be shown, but not the data (images etc) it points to.</p>
  
  <p>This is expected behavior, and can be solved by just moving the JSON and data folders to the right location. (which is for now acceptabe, but not in the long run)</p>
  
  <p><p>But when I use Cordova to create an Android app, that won't be possible. And it looks like the file API doesn't have a solution for this.</p><p>So I would like to use the JSON file, wherever it may be located, as the root for getting the other data, or to be able to import a whole folder into the application.</p><p>Are there any options? Or should I go fully native?</p></p>
  
  <p>UPDATE</p>
  
  <p>It looks like it is impossible to get what I need (the path to the json file that is selected by a user, to re-create the links in the src attributes).</p>
  
  <p>So the only possibility is to let users save their course files in a specific location (like Downloads or Documents).</p>
  
  <p>As in the end I want to make courses downloadable as zip file, I go for the option to unzip that into the application - seems to be the easiest solution.</p>