You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
6 years ago | |
|---|---|---|
| .. | ||
| src/android | 6 years ago | |
| CHANGELOG.md | 6 years ago | |
| LICENSE.md | 6 years ago | |
| README.md | 6 years ago | |
| plugin.xml | 6 years ago | |
README.md
cordova-plugin-filepath
This plugin allows you to resolve the native filesystem path for Android content URIs and is based on code in the aFileChooser library.
Original inspiration from StackOverflow.
Installation
$ cordova plugin add cordova-plugin-filepath
Supported Platforms
- Android
Usage
Once installed the plugin defines the window.FilePath object. To resolve a
file path:
window.FilePath.resolveNativePath('content://...', successCallback, errorCallback);
successCallback
Returns the file:// file path.
errorCallback
Returns the following object:
{ code: <integer>, message: <string> }
Possible error codes are:
-1- describes an invalid action0-file://path could not be resolved1- the native path links to a cloud file (e.g: from Google Drive app)
LICENSE
Apache (see LICENSE.md)