Maximum allowed files for Blazor InputFile component
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 276
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
This is followup to https://github.com/dotnet/aspnetcore/issues/47036
@javiercn was right, this is due to maximum signalr message size.
However setting limit in method `e.GetMultipleFiles(Constants.MaxImageCount)` will not work as expected, because it will never be called. When uploading 300 files, signalr connection is lost and reconnected. Input box is showing, that file count is 300, but there is nothing you can do about it.
### Expected Behavior
I believe there should be a way to either split this to multiple messages via signalr, or at least make a way to show an error when there is more than X files selected.
### Steps To Reproduce
Try to upload 300 files using `InputFile` blazor component
### Exceptions (if any)
_No response_
### .NET Version
7.0
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.