/cordova-filechooser

Cordova Plugin that supplies a File Chooser

Primary LanguageJavaOtherNOASSERTION

Cordova FileChooser Plugin

Requires Cordova >= 2.8.0

Install with Cordova CLI

$ cordova plugin add https://github.com/agilize/cordova-filechooser.git

Install with Plugman

$ plugman --platform android --project /path/to/project \
  --plugin https://github.com/agilize/cordova-filechooser.git

API

fileChooser.open(options, successCallback, failureCallback);

Options:

  • allowedTypes: Mime types allowed to select
  • title: Title of app choices

The success callback get the uri of the selected file

fileChooser.open({}, function(uri) {
  alert(uri);
});

Screenshot

Screenshot

TODO rename open to pick, select, or choose.