1.2.0 • Published 7 years ago
cordova-plugin-filechooser v1.2.0
Cordova FileChooser Plugin
Requires Cordova >= 2.8.0
Install with Cordova CLI
$ cordova plugin add http://github.com/ihadeed/cordova-filechooser.gitInstall with Plugman
$ plugman --platform android --project /path/to/project \
--plugin http://github.com/ihadeed/cordova-filechooser.gitAPI
fileChooser.open(filter, successCallback, failureCallback); // with mime filter
fileChooser.open(successCallback. failureCallback); // without mime filterFilter (Optional)
{ "mime": "application/pdf" } // text/plain, image/png, image/jpeg, audio/wav etcThe success callback gets the uri of the selected file
fileChooser.open(function(uri) {
alert(uri);
});Screenshot

Supported Platforms
- Android
- Windows (UWP)
TODO rename open to pick, select, or choose.