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

[Windows] File plugin, nativeUrl includes two slashes before filename

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-file

    Description

      The returned FileEntry object in the getFile function of a DirectoryEntry object contains an incorrect nativeUrl that contains 2 slashes before the filename (ie. ms-appdata:///temp//myfile.file).

      This can seemingly be resolved by changing the following line in the getFile function in FileProxy.js:

      var fspath = sanitize(dirpath '/' path);

      to

      var fspath = sanitize(path);

      I am unsure if this causes any side-effects however.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mac89 Maarten Manders
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: