Bug 187084 - `change` event for input[type=file] does not fire when different file with same name is selected
Summary: `change` event for input[type=file] does not fire when different file with sa...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-26 22:40 PDT by Mariko Kosaka
Modified: 2021-07-08 09:44 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariko Kosaka 2018-06-26 22:40:59 PDT
https://codepen.io/anon/pen/eKPJda?editors=1010

Steps to reproduce:
1. [input]select file1 on <input type="file"> 
  => change event is fired
2. [input]select file1 again
  => change event is NOT fired
3. Delete the file1, rename file2 to same name as file2
4. [input]select file2 (same file name as file1) 
  => change event is NOT fired

video : https://youtu.be/hrt6ll73kNk

Expected:
Change event is fired every-time user select a file on prompt. Regardless of filename or even when same file is selected twice.
Comment 1 Mariko Kosaka 2018-06-27 10:41:14 PDT
Typo on reproduce instruction: 
3. Delete the file1, rename file2 to same name as *file1*
Comment 2 Lucas Forschler 2019-02-06 09:19:08 PST
Mass move bugs into the DOM component.
Comment 3 Domenic Denicola 2021-07-08 09:44:46 PDT
See also https://bugs.webkit.org/show_bug.cgi?id=227799