Blazor InputFile IFileListEntry cannot be found

You are using the wrong docs. That was the prototype used I believe for 5.0. Please use the latest documentation.

Your code should look something like this now:

<InputFile multiple OnChange="HandleSelection" />

@code {

    IReadOnlyList<IBrowserFile> selectedFiles;

    void HandleSelection(InputFileChangeEventArgs eventArgs)
        const int MaxAllowedFiles = 5;
        selectedFiles = eventArgs.GetMultipleFiles(MaxAllowedFiles);


CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top