hiddentao / cordova-plugin-filepath

Resolve native file paths from content URLs for Cordova platforms
Apache License 2.0
66 stars 127 forks source link

Error: column '_data' does not exist #43

Open Stefano1964 opened 5 years ago

Stefano1964 commented 5 years ago

On Android 9 and DropBox, works with GoogleDrive The path from cordova file chooser plugin https://github.com/ihadeed/cordova-filechooser content://com.dropbox.android.FileCache/filecache/445f6e95-75b4-4b3a-b36e-5b307244c22d The log:

E/PluginManager: Uncaught exception from plugin
java.lang.IllegalArgumentException: column '_data' does not exist. Available columns: []
at android.database.AbstractCursor.getColumnIndexOrThrow(AbstractCursor.java:340)
at android.database.CursorWrapper.getColumnIndexOrThrow(CursorWrapper.java:87)
at com.hiddentao.cordova.filepath.FilePath.getDataColumn(FilePath.java:208)
at com.hiddentao.cordova.filepath.FilePath.getPath(FilePath.java:407)
at com.hiddentao.cordova.filepath.FilePath.resolveNativePath(FilePath.java:104)
at com.hiddentao.cordova.filepath.FilePath.execute(FilePath.java:76)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:57)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:386)
at android.os.Looper.loop(Looper.java:169)
at android.os.HandlerThread.run(HandlerThread.java:65)
adityamaple1989 commented 4 years ago

@Stefano1964 did you find out any solution,can you please tell me that