File Chooser

Contents

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

https://github.com/ihadeed/cordova-filechooser

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add cordova-plugin-filechooser npm install @ionic-native/file-chooser
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/file-chooser

Supported Platforms

  • Android

Usage

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

constructor(private fileChooser: FileChooser) { }

...

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