Hi we want to restrict users to select only five files at a time. after 5 files users shouldnt be able to select more. Currently we only have single or multiple files but a specific number of max files is not there.
Posted on:17 Nov 2021 10:01
The reason why such a feature is not being implemented is because we don't have control over the number of files that the user selects from the file system and this is mainly because of security reasons.
What can be done is to manually check how many items are trying to be uploaded (on select event for example) and remove the files which exceed the max number with removeFileByUid method (or clear all selected files with clearFiles method).