I have a picture upload button that automatically uploads the file when selected from the browse window.
Nonetheless, it doesn\'t work the second time around and that is
After you have done what you want to do with the file, you can reset the FileList.
In my React app I have this:
const handleLoad = evt => {
if (evt.target.files && evt.target.files[0]) {
dispatch(loadFile(evt.target.files[0].path));
}
// Reset the FileList, as otherwise the second and subsequent times
// we browse, nothing will happen, because nothing changed.
evt.target.files = new FileList();
};