I have a simple Blazor Server app that works ok.
I'm trying to create an equivalent app using Blazor WebAssembly with dotnet 5.
In the working app, I have a razor component that enables the user to upload files using the BlazorFileUploader nuget package
Markup:
<InputFile multiple OnChange="HandleFileSelected"/>
Code behind:
public async Task HandleFileSelected(IFileListEntry[] files)
{
if (!ValidateFiles(files, out _errorMsg))
{
return;
}
etc...
When I try to compile the wasm app, I get the following error
CS1503 Argument 2: cannot convert from 'method group' to 'EventCallback'
Any ideas what I'm doing wrong?