1.0.0 • Published 6 years ago

cordova-plugin-file-selector v1.0.0

Weekly downloads
3
License
Apache License, V...
Repository
github
Last release
6 years ago

Cordova File Selector Plugin

Source forked from https://github.com/don/cordova-filechooser

  • Requires Cordova >= 2.8.0
  • Support for Cordova >= 7.0.0

Installing the plugin

With Cordova CLI

    $ cordova plugin add https://github.com/cinthiaro/cordova-plugin-file-selector.git

With Plugman

    $ plugman --platform android --project /path/to/project \
            --plugin http://github.com/cinthiaro/cordova-plugin-file-selector.git

Using the plugin

    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

Screenshot

TODO rename open to pick, select, or choose.