react-native-documents / document-picker

Document Picker for React Native

Home Page:https://react-native-documents.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Required to add fix number of files getting selected

codeYard17 opened this issue · comments

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.

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