react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 437 forks source link

Required to add fix number of files getting selected #601

Closed codeYard17 closed 1 year ago

codeYard17 commented 1 year ago

Feature request

Why it is needed

It is needed as in some use-case only fixed no of files need to uploaded.

I am working on an app where it is required to add only 5 files instead of unlimited no of files. It will be good if implemented as the mobile screen is limited and users can only select the fix set of files and not even accidental selection of non required files.

Possible implementation

This is a normal feature which can be good for a lot of apps.

Code sample

It can be implemented in a way similar to the types of files selected, where only selectable file is visible. For this one the implementation can be like on header it is getting shown only this # of files can be selected.

vonovak commented 1 year ago

Hello and thanks for asking, unfortunately, this is not possible using the underlying native apis. Thank you 🙂