0.1.4 • Published 3 years ago

@sasitha1992/cordova-plugin-filechooser v0.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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.

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago