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

window.resolveLocalFileSystemURL is not resolving content:// path to a file:// path

    XMLWordPrintableJSON

    Details

      Description

      It's my understanding that the file plugin (resolveLocalFileSystemURL) should handle this, however I had to use the file-path plugin (resolveNativePath)

      var path = "content://com.android.providers.media.documents/document/image:1051";

      window.resolveLocalFileSystemURL(path, function(a){
      console.log(a)
      })

      -> undefined

      window.FilePath.resolveNativePath(path, function(localFileUri) {
      console.log(localFileUri)
      });

      -> "file:///storage/emulated/0/DCIM/Camera/IMG_20160625_104045.jpg"

        Attachments

          Activity

            People

            • Assignee:
              daserge Sergey Shakhnazarov
              Reporter:
              josh.m.sharpe@gmail.com Josh Sharpe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: