don / cordova-filechooser

Cordova Plugin that supplies a File Chooser
Other
97 stars 214 forks source link

get file:// form content:// #13

Open MateuszKasiuba opened 8 years ago

MateuszKasiuba commented 8 years ago

It is possible to add to cordova-filechooser patch to return real path to file instead content://? thank you.

go2hyder commented 8 years ago

I am having the same issue.

filerun commented 8 years ago

Same question here

filerun commented 8 years ago

Solution:

fileChooser.open(function(contentURI) {
            window.FilePath.resolveNativePath(contentURI, function(absolutePath) {
                window.resolveLocalFileSystemURL(absolutePath, function(fileEntry) {

There is a Cordova plugin for "resolveNativePath". Google it.

dayaki commented 7 years ago

This @filerun this solved this issue for me