/cordova-plugin-filepath

Resolve native file paths from content URLs for Cordova platforms

Primary LanguageJavaApache License 2.0Apache-2.0

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);

LICENSE

Apache (see LICENSE.md)