cordova-filechooser icon indicating copy to clipboard operation
cordova-filechooser copied to clipboard

Getting the data?

Open mrktrace opened this issue 10 years ago • 6 comments

Im using your pluggin and I manage to install it and use it, I tried the code you just uploaded and it works, the problem is that uri return a string like: content://com.android.providers.media.documents/document/image%3A68 How can I get the actual file? Thanks!

mrktrace avatar Jan 09 '15 14:01 mrktrace

If you want to manipulate the contents of the file you're probably better off using the Cordova File Plugin. Unfortunately the API is pretty clunky, so I suggest reading Exploring the FileSystem APIs

don avatar Jan 09 '15 16:01 don

Thanks!

mrktrace avatar Jan 09 '15 16:01 mrktrace

I'm not sure if you are still having issues with content URIs. If you are, check out this plugin.

While you can use the File System APIs to resolve file data from the media library, it won't work for document providers like Google Drive (on 5.x) -- that is where the Document Contract plugin proves useful.

danjarvis avatar Apr 24 '15 01:04 danjarvis

I Have the same issue.

Can you please suggest how can i resolve?

Is there any sample codes?

ullasmohan avatar May 19 '15 08:05 ullasmohan

If anyone are still facing this problem please checkout this plugin.

coolvasanth avatar Jul 17 '17 10:07 coolvasanth

@coolvasanth one of the biggest downsides to the file-path plugin is, that it requests the permissions on initialize.

I am not aware that any of the plugins do the same thing but provide an extra function for request permissions.

that being said, I cannot use it.

lordgreg avatar Oct 20 '17 20:10 lordgreg