We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5491435 commit 9e44f70Copy full SHA for 9e44f70
1 file changed
src/BootstrapBlazor/Components/Upload/UploadBase.cs
@@ -147,14 +147,14 @@ protected async Task OnFileChange(InputFileChangeEventArgs args)
147
if (MaxFileCount.HasValue)
148
{
149
fileCount = MaxFileCount.Value;
150
- }
151
152
- // 计算剩余可上传数量
153
- fileCount = fileCount - Files.Count;
154
- if (fileCount <= 0)
155
- {
156
- // 如果剩余可上传数量小于等于 0 则不允许继续上传
157
- return;
+ // 计算剩余可上传数量
+ fileCount = fileCount - Files.Count;
+ if (fileCount <= 0)
+ {
+ // 如果剩余可上传数量小于等于 0 则不允许继续上传
+ return;
+ }
158
}
159
160
var items = args.GetMultipleFiles(args.FileCount).Take(fileCount).Select(f =>
0 commit comments