Once we choose a file to upload to InputFile, there's no way of clearing the text field belonging to InputFile. Resetting the key, suggested in https://stackoverflow.com/questions/66162951/blazor-inputfile-reset-clear-value-statehaschanged-not-working does not work and a workaround of keeping a double InputFile does not look neat: SteveSandersonMS/BlazorInputFile#2.
Initial view:

After upload:

After resetting the key in
|
fileInputKey = Guid.NewGuid().ToString(); |
it's still
If the user clicks the "Choose file" button, the `InputFile goes back to the initial view.
Once we choose a file to upload to
InputFile, there's no way of clearing the text field belonging toInputFile. Resetting the key, suggested in https://stackoverflow.com/questions/66162951/blazor-inputfile-reset-clear-value-statehaschanged-not-working does not work and a workaround of keeping a doubleInputFiledoes not look neat: SteveSandersonMS/BlazorInputFile#2.Initial view:

After upload:

After resetting the key in
CashFlowAnalyzer/CashFlowAnalyzer.Client/Pages/Upload.razor
Line 234 in cf86818
it's still
If the user clicks the "Choose file" button, the `InputFile goes back to the initial view.