Filepicker can not reload a file
Sometimes I need to reload a configuration file from my disk. An intuitive approach is to pick the same file. It would be nice to refresh the value automatically.
Hi @GiggleLiu! This happens while using PlutoUI filepicker, correct?
@pankgeorg Yes.
Ok it seems that's the default browser behaviour; doesn't re-read the file if it's the same.
A solution is the below: delete the file when user clicks on the input again.
@bind file html"""<input type="file" onclick="this.value=null" >""" (instead of @bind file FilePicker())
Ok it seems that's the default browser behaviour; doesn't re-read the file if it's the same. A solution is the below: delete the file when user clicks on the input again.
@bind file html"""<input type="file" onclick="this.value=null" >"""(instead of@bind file FilePicker())
@pankgeorg any chance this workaround could be incorporated into PlutoUI.FilePicker?