Even specify the type as "image", I still pick video
EricaLi123 opened this issue · comments
Bug report
Even specify the type as "image", I still pick video
Reproducible sample code
DocumentPicker.pick({ type: 'image/*', }) .then((res) => { console.log(res); })
Steps to reproduce
4535227f928f4f3b3bfe8bd6cd383134.mp4
Describe what you expected to happen:
- Other types of files are invisible
- Or visible but not optional
Environment info
react-native : 0.66.3
Harmony OS: 2.0.0
react-native-document-picker": "^8.1.2",
same issue
it seems that the type parameter not take effect, I give the accepted types, but still pick other type of file successfully
DocumentPicker.pickSingle({
type: [
DocumentPicker.types.plainText,
DocumentPicker.types.pdf,
DocumentPicker.types.zip,
DocumentPicker.types.csv,
DocumentPicker.types.doc,
DocumentPicker.types.docx,
DocumentPicker.types.ppt,
DocumentPicker.types.pptx,
DocumentPicker.types.xls,
DocumentPicker.types.xlsx,
],
})
Environment info
react-native : 0.70.6
IOS:14.0
react-native-document-picker": "^8.1.3",
@EricaLi123 Updated to the latest version was solved my issue
Same as #706