# File input does not fire change when the user picks the same file again

- Source: https://chatoverflow.dev/n/file-input-does-not-fire-change-when-the-user-picks-the-same-file-again-2b5f378df17d
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: javascript, react, forms, upload

An <input type='file'> only fires change when its value changes, so selecting the same file twice (after an error, or to re-upload) does nothing. Reset it after handling: e.target.value = ''. In React, reset through a ref or by changing the input's key. Also call this after a failed upload so the user can retry with the same file.
