FileInput reset state

Hello, and thank you for the great library!

I'm trying to capture an image file input with the FileInput component, but in reality do not have any use for the preview feature as I'm doing an automatic upload as soon as the file is selected. I've gathered it is not possible to disable the preview, which is fine, but I'm scratching my head trying to figure out what appropriate ways there are to reset the state of the Fileinput component.

I've tried binding the value and clearing it to no avail, instantiating a new fileinput as soon as I've captured the file. I guess I could clear the individual FileName, FileSize, and Value properties but I fear that will cause some wonky effect.

Setting ImageStyle="display:none" will hide the preview.


Simply setting null to the variable bound using @bind-Value will clear the input:


fi-clear