Open sahalshn opened 2 years ago
cordova-plugin-filechooser 1.2.0 "File Chooser" cordova-plugin-filepath 1.6.0 "cordova-plugin-filepath"
Unable to read file native path in android 11. This is only happening for files that are uploaded from the download folder.
this.fileChooser.open() .then(uri => { let pdfname = uri.substring(uri.lastIndexOf("/") + 1); let pdfExt = pdfname.substr(pdfname.lastIndexOf('.') + 1); if (pdfExt == 'pdf') { // let name = pdfname.split('.').slice(0, -1).join('.'); this.processPDF(uri, ''); } else { this.filePath.resolveNativePath(uri) .then(file => { let filename = file.substring(file.lastIndexOf("/") + 1); let fileExt = filename.substr(filename.lastIndexOf('.') + 1); if (fileExt == 'pdf') { } }) .catch(err => { // Here err is {code: 0, message: 'Unable to resolve filesystem path. hahahha'} }); } })
@hiddentao Can you please have look into it
@sahalshn I am no longer actively maintaining this repo
Unable to read file native path in android 11. This is only happening for files that are uploaded from the download folder.