File Path

Improve this doc

$ ionic plugin add cordova-plugin-filepath
$ npm install --save @ionic-native/file-path

Repo: https://github.com/hiddentao/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.

Supported platforms

Usage

import { FilePath } from '@ionic-native/file-path';

constructor(private filePath: FilePath) { }

...

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

Instance Members

resolveNativePath(path)

Resolve native path for given content URL/path.

Param Type Details
path String

Content URL/path.

Returns: Promise<string>

API

Native

General