Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even specify the type as "image", I still pick video #598

Closed
EricaLi123 opened this issue Nov 2, 2022 · 3 comments
Closed

Even specify the type as "image", I still pick video #598

EricaLi123 opened this issue Nov 2, 2022 · 3 comments

Comments

@EricaLi123
Copy link

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:

  1. Other types of files are invisible
  2. Or visible but not optional

Environment info

react-native : 0.66.3
Harmony OS: 2.0.0
react-native-document-picker": "^8.1.2",

@surethink
Copy link

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",

@faheem-cmd
Copy link

@EricaLi123 Updated to the latest version was solved my issue

@vonovak
Copy link
Collaborator

vonovak commented Mar 25, 2024

Same as #706

@vonovak vonovak closed this as completed Mar 25, 2024
@react-native-documents react-native-documents locked and limited conversation to collaborators Mar 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants