I am Using FilePath And File Chooser Plugin to choose an attachment and convert it into base 64.
command Used to install Filepath: npm install cordova-plugin-filepath npm install @ionic-native/file-path
command used to install File Chooser npm install cordova-plugin-filechooser npm install @ionic-native/file-chooser
it looks like you haven't add the plugin to your package.json file. In order to do that in Ionic type this commands on a terminal opened in your project folder:
ionic cordova plugin add cordova-plugin-filechooser
npm install @ionic-native/file-chooser
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.