File Chooser

Improve this doc

$ ionic plugin add http://github.com/don/cordova-filechooser.git
$ npm install --save @ionic-native/file-chooser

Repo: https://github.com/don/cordova-filechooser

Opens the file picker on Android for the user to select a file, returns a file URI.

Supported platforms

Usage

import { FileChooser } from '@ionic-native/file-chooser';

constructor(private fileChooser: FileChooser) { }

...

this.fileChooser.open()
  .then(uri => console.log(uri))
  .catch(e => console.log(e));

Instance Members

open()

Open a file

Returns: Promise<string>

API

Native

General