File Chooser

Contents

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

Installation

ionic cordova plugin add cordova-plugin-filechoosernpm install @ionic-native/file-chooser
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEYnpm install @ionic-enterprise/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));