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


#1

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.


#2

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


#3

i want like this


#4

So where do you have these documents saved?


#5

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


#6

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.


#7

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