Skip to main content
Version: v5

File Chooser

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?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation

$ npm install cordova-plugin-filechooser 
$ npm install @awesome-cordova-plugins/file-chooser
$ ionic cap sync

Supported Platforms

  • Android

Usage

React

Learn more about using Ionic Native components in React

Angular

import { FileChooser } from '@awesome-cordova-plugins/file-chooser/ngx';

constructor(private fileChooser: FileChooser) { }

...

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