New issue
Advanced search Search tips

Issue 856911 link

Starred by 2 users

Issue metadata

Status: ExternalDependency
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

`input` and `change` event for input[type=file] does not fire when different file with same name is selected

Reported by mariko.k...@gmail.com, Jun 27 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36

Steps to reproduce the problem:
video: https://youtu.be/B6Ypt9wPuDs
reduced test case: https://codepen.io/anon/pen/eKPJda?editors=1010

Steps to reproduce:
1. [input]select file1 on <input type="file"> 
  => input and change event are fired
2. [input]select file1 again
  =>  input and 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) 
  =>  input and change event is NOT fired

What is the expected behavior?
Input and Change event are fired every-time user select a file on prompt. Regardless of filename or even when same file is selected twice.

What went wrong?
Input and Change events do not fire.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 67.0.3396.87  Channel: n/a
OS Version: OS X 10.13.3
Flash Version: 

Firefox fires Input and Change events everytime user selects a file on prompt.
Webkit has same issue as Chrome for not firing events. (bug: https://bugs.webkit.org/show_bug.cgi?id=187084)
 

Comment 1 by woxxom@gmail.com, Jun 27 2018

Typo: step 3 should be "Delete the file1, rename file2 to same name as file1".
ah yes, thanks for the catch woxxom@gmail.com
Components: Blink>Forms>File
Labels: Needs-Triage-M67

Comment 5 by tkent@chromium.org, Jun 28 2018

Status: ExternalDependency (was: Unconfirmed)
https://github.com/whatwg/html/issues/3780

 Issue 919290  has been merged into this issue.

Sign in to add a comment