Search code examples
javascriptcordovaphonegap-pluginscordova-pluginsphonegap

File chooser to choose docx,pdf file from browsing local storage in phonegap cordova android application


I have tried these plugins for phonegap cordova android app

https://github.com/cdibened/filechooser

github.com/don/cordova-filechooser

but unable to install them in my application, getting error like this;

Error: Failed to fetch plugin https://github.com/cdibened/filechooser.git via registry.

I want to add functionality to upload pdf or doc file from phonegap to server but I unable to do that I know there is a filetransfer plugin but it only allows me to browse media like image or videos but not document files.

Please, it would be great if anyone help me to do that

I'm stuck here.


Solution

  • Thanks Gandhi for a reply but I tried that trick earlier but no succeed!

    I have resolved this issue by adding this plugin finally, now I can choose a pdf from mobile local storage and upload it to the server using Filetransfer plugin, If anyone want the source code , I will upload it here

    Plugin link:

    https://www.jsdelivr.com/package/npm/cordova-plugin-file-chooser

    cmd: cordova plugin add cordova-plugin-file-chooser