FileInput.value not changing if file contents change

I just noticed that the FileInput.value, which should be the contents of the selected file in bytes, does not change if you

  • Select a file (file-A)
  • Edit the file-A contents
  • Select the file-A again

Is this a bug? Does anyone know any workaround for this?

It will work correctly if you select any other file in between.

Not a bug, but should be documented.

Workaround is probably setting the FileInput.value = None or re-instantiate it.

I would recommend filing it as a bug.