Skip to content

vvik91/cordova-filechooser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Cordova Plugin that supplies a File Chooser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 59.9%
  • JavaScript 40.1%