cordova-plugin-armsoft-mfilechooser

1.0.4 • Public • Published

MFileChooser

Cordova/Phonegap plugin that supplies a File Chooser for Android 4+. The File Chooser does not require installation external file manager

alt text | alt text

Adding the Plugin to your project

Plugin has been successfully tested on Android 4+ device with Cordova 3.

To install the plugin

cordova plugin add https://github.com/roberthovhannisyan/MFileChooser

Using the plugin

The plugin creates the object window.plugins.mfilechooser. To use, call the open() method:

Simple using

   window.plugins.mfilechooser.open([], function (uri) {
      
      alert(uri);
      
    }, function (error) {
      
        alert(error);
    
    });

Filtering by extension

   window.plugins.mfilechooser.open(['.doc', '.xls', '.ppt'], function (uri) {
      
      alert(uri);
      
    }, function (error) {
      
        alert(error);
    
    });

Release notes

September 16, 2014 Initial release

Contribution

I wrote this plugin basing on the simple-file-chooser by ingyesid

Package Sidebar

Install

npm i cordova-plugin-armsoft-mfilechooser

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • aramgev
  • roberthovhannisyan
  • sargis.saradyan
  • suren1525