This repository has been archived on 2023-11-19. You can view files and clone it, but cannot push or open issues or pull requests.
goober-ionic/plugins/cordova-plugin-filechooser
2018-07-15 19:24:48 -07:00
..
src/android add native android build sources 2018-07-15 19:24:48 -07:00
filechooser.png add native android build sources 2018-07-15 19:24:48 -07:00
LICENSE.txt add native android build sources 2018-07-15 19:24:48 -07:00
package.json add native android build sources 2018-07-15 19:24:48 -07:00
plugin.xml add native android build sources 2018-07-15 19:24:48 -07:00
README.md add native android build sources 2018-07-15 19:24:48 -07:00

Cordova FileChooser Plugin

Requires Cordova >= 2.8.0

Install with Cordova CLI

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

Install with Plugman

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

API

fileChooser.open(successCallback, failureCallback);

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.