Chooser
Overview
This plugin is an forked version of cordova plugin chooser that provides multiple file selection functionality and removes base64 functionality as we can use ionic native file plugin to get file directly
Installing
cordova plugin add cordova-plugin-simple-file-chooser
Supported Platforms:
API
chooser.getFiles(accept?: string) : Promise<undefined|{
mediaType: string;
name: string;
uri: string;
}>
Example Usage
(async () => {
const file = await chooser.getFile();
console.log(file);
})();
Note
If calling in typescript don't use types instead use direct javascript by declare var chooser
on your ts file.