Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9921

applicationDirectory wrong on browser platform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Master
    • None
    • cordova-plugin-file

    Description

      In the code for the browser platform, applicationDirectory is defined as location.origin + "/", which with file URLs resolves to simply file:///.

      Clearly, the root of the filesystem is not generally going to be the application's directory.

      It could be tricky to figure out the right value to use here. But it would be better to indicate a lack of support (null?) than to return an obviously wrong value.

      Attachments

        Activity

          People

            Unassigned Unassigned
            marfire Kevin Christopher Henry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: