Sin descripción
Rafael Arce Nazario 7634e2ccd0 init hace 5 años
..
src init hace 5 años
www init hace 5 años
LICENSE.txt init hace 5 años
README.md init hace 5 años
filechooser.png init hace 5 años
package.json init hace 5 años
plugin.xml init hace 5 años

README.md

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.