diff --git a/BlazorInputFile/InputFile.razor b/BlazorInputFile/InputFile.razor index 9cd9a76..0b74e5c 100644 --- a/BlazorInputFile/InputFile.razor +++ b/BlazorInputFile/InputFile.razor @@ -1,13 +1,14 @@ @implements IDisposable @inject IJSRuntime JSRuntime - + @code { [Parameter(CaptureUnmatchedValues = true)] public Dictionary UnmatchedParameters { get; set; } [Parameter] public EventCallback OnChange { get; set; } [Parameter] public int MaxMessageSize { get; set; } = 20 * 1024; // TODO: Use SignalR default [Parameter] public int MaxBufferSize { get; set; } = 1024 * 1024; + [Parameter] public string FileFormatFilter { get; set; } ElementReference inputFileElement; IDisposable thisReference; diff --git a/samples/Sample.Core/Pages/ImageFile.razor b/samples/Sample.Core/Pages/ImageFile.razor index a165fcb..32a55d7 100644 --- a/samples/Sample.Core/Pages/ImageFile.razor +++ b/samples/Sample.Core/Pages/ImageFile.razor @@ -4,7 +4,7 @@

A single file input that reads the input as an image in a chosen format with specified maximum dimensions.

- +

@status