Need help upgrading to Ionic Framework 4.0? Get assistance with our Enterprise Migration Services EXPLORE NOW

File Path

Improve this doc

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

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

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-filepath
    $ npm install --save @ionic-native/file-path@4
    
  2. Add this plugin to your app's module

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