Skip to content

mohamed-erfan/cordova-plugin-file-selector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Cordova Plugin that supplies a File Chooser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 97.4%
  • JavaScript 2.6%