@page "/fileup"<h3>FileUp</h3><InputFile OnChange="@UploadedExcel" accept=".xlsx" />@code { public async Task UploadedExcel(InputFileChangeEventArgs e) { Console.WriteLine("Hello"); }}The code should be basic enough but it doesn't trigger the task down below when I upload a file. Am I missing something?
I have tried a few different things including changing to multifile and all. I have another page with full code block that I don't wanna sahre because of many unrelated things. But this on itself should work right?Network
I was missing the @rendermode InteractiveAuto at the top of the page. After adding it, it triggered my method.