IONIC 2 : List of all documents i.e .pdf,.doc,.text file

Hello,
IONIC Team

How to read and make a list of all documents i.e .pdf,.doc,.text file only like whatsapp when sending attachement.

Not everybody here uses Whatsapp. Could you add a screenshot what it should look like?

i want like this

So where do you have these documents saved?

these document are saved on my android device in “Download” folder.

Ok, so you need a plugin to read this folder for a list of files. Check Ionic Native or search directly for Cordova plugins that can read Files. Then you have a list of files you only have to output and format in the way you want.

check cordova file plugin --> there you have access to the filesystem and shared folders. --> Read a directory to get alle files in there :wink:

1 Like