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 6a17658 commit e8383bcCopy full SHA for e8383bc
1 file changed
src/BootstrapBlazor/Components/Upload/UploadBase.cs
@@ -1,4 +1,4 @@
1
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
2
// The .NET Foundation licenses this file to you under the Apache 2.0 License
3
// See the LICENSE file in the project root for more information.
4
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -283,7 +283,13 @@ protected List<UploadFile> GetUploadFiles()
283
{
284
_filesCache.AddRange(DefaultFileList);
285
}
286
- _filesCache.AddRange(UploadFiles);
+ UploadFiles.ForEach(f =>
287
+ {
288
+ if (!_filesCache.Contains(f))
289
290
+ _filesCache.Add(f);
291
+ }
292
+ });
293
294
return _filesCache;
295
0 commit comments