Source forked from https://github.com/don/cordova-filechooser
- Requires Cordova >= 2.8.0
- Support for Cordova >= 7.0.0
$ cordova plugin add https://github.com/cinthiaro/cordova-plugin-file-selector.git
$ plugman --platform android --project /path/to/project \
--plugin http://github.com/cinthiaro/cordova-plugin-file-selector.git
fileChooser.open(successCallback, failureCallback);
The success callback returns the object file with the following properties: name, uri, mime_type and extension.
fileChooser.open(function(file) {
alert("Name: " + file.name +
" URI: " + file.uri +
" Mime type: " + file.mime_type +
" Extension: " + file.extension);
});
Supported Platforms:
- Android
Screenshot
TODO rename open
to pick, select, or choose.