diff --git a/src/MatBlazor/Components/MatFileUpload/BaseMatFileUpload.cs b/src/MatBlazor/Components/MatFileUpload/BaseMatFileUpload.cs index 365b93a0..d06ce236 100644 --- a/src/MatBlazor/Components/MatFileUpload/BaseMatFileUpload.cs +++ b/src/MatBlazor/Components/MatFileUpload/BaseMatFileUpload.cs @@ -16,6 +16,9 @@ public class BaseMatFileUpload : BaseMatDomComponent [Parameter] public EventCallback OnChange { get; set; } + [Parameter] + public bool AllowMultiple { get; set; } = false; + [Parameter] public string Label { get; set; } = "Drop files here or Browse"; diff --git a/src/MatBlazor/Components/MatFileUpload/MatFileUpload.razor b/src/MatBlazor/Components/MatFileUpload/MatFileUpload.razor index fbc37131..161fc7b1 100644 --- a/src/MatBlazor/Components/MatFileUpload/MatFileUpload.razor +++ b/src/MatBlazor/Components/MatFileUpload/MatFileUpload.razor @@ -2,13 +2,18 @@ @inherits BaseMatFileUpload
- + @if (AllowMultiple == true){ + + } + else { + + }
@Label @MatIconNames.Attach_file
@if (ProgressTotal != 0) { - + }
\ No newline at end of file