Closed Bug 1099182 Opened 11 years ago Closed 11 years ago

<input type="file"> allows multiple files to be drag-n-dropped

Categories

(Firefox :: Untriaged, defect)

35 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 992691

People

(Reporter: wildlyinaccurate, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36 Steps to reproduce: 1. Create an input element of type="file", without the "multiple" attribute (<input id="myFile" type="file">) 2. Select two files in a file manager (Finder, Windows Explorer, Nautilus, etc) and drag them onto the file input Actual results: The file input allows the files to be dropped, and displays "2 files selected". The element's FileList has a length of 2 (document.getElementById('myFile').files). Expected results: The input should not have allowed more than one file to be dropped.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.