Skip to main content
Version: v6

File Path

This plugin allows you to resolve the native filesystem path for Android content URIs and is based on code in the aFileChooser library.

https://github.com/hiddentao/cordova-plugin-filepath

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation

$ npm install cordova-plugin-filepath 
$ npm install @awesome-cordova-plugins/file-path
$ ionic cap sync

Supported Platforms

  • Android

Usage

React

Learn more about using Ionic Native components in React

Angular

import { FilePath } from '@awesome-cordova-plugins/file-path/ngx';

constructor(private filePath: FilePath) { }

...

this.filePath.resolveNativePath(path)
.then(filePath => console.log(filePath))
.catch(err => console.log(err));