Cordova Plugin that supplies a File Chooser
Branch: master
Clone or download
#6 Compare This branch is 23 commits ahead of don:master.
1
Latest commit 00301cf Dec 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src callback should error instead of sendPluginResult Dec 19, 2018
www Maintain backward compatibility Oct 28, 2018
LICENSE.txt Create LICENSE.txt Jun 21, 2016
README.md Update README.md Dec 14, 2018
filechooser.png screenshot Jul 11, 2013
package.json Bump version Dec 21, 2018
plugin.xml Bump version Dec 21, 2018

README.md

Cordova FileChooser Plugin

Requires Cordova >= 2.8.0

Install with Cordova CLI

$ cordova plugin add http://github.com/ihadeed/cordova-filechooser.git

Install with Plugman

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

API

fileChooser.open(filter, successCallback, failureCallback); // with mime filter

fileChooser.open(successCallback. failureCallback); // without mime filter

Filter (Optional)

{ "mime": "application/pdf" }  // text/plain, image/png, image/jpeg, audio/wav etc

The success callback gets the uri of the selected file

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

Screenshot

Screenshot

Supported Platforms

  • Android
  • Windows (UWP)

TODO rename open to pick, select, or choose.