Hi @Anna Bogdanovna Bondarets,
I think you need check the source code of GetMultipleFiles
:
public IReadOnlyList<IBrowserFile> GetMultipleFiles(int maximumFileCount = 10)
{
if (_files.Count > maximumFileCount)
{
throw new InvalidOperationException($"The maximum number of files accepted is {maximumFileCount}, but {_files.Count} were supplied.");
}
return _files;
}
To achieve your requirement, you need change your code like below:
int numberOfFilesUploaded = e.GetMultipleFiles(maxAllowedFiles).Count();
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Rena