Bug 71858
Summary: | Drag and dropping files over <input type=file accept> does not filter out unacceptable files | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jon Lee <jonlee> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ap, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.7 |
Jon Lee
Open a web page with a file input element which includes the accept attribute with a value of "image/*"
When you click on the "Choose File" button Safari will show the open file panel, allowing the user to only choose image files.
But you can drag a .pdf file over the file input and it will accept it.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/10415311>
Alexey Proskuryakov
It could be a weird user experience if a drag is accepted, but some files in a drag are ignored. Do any other browsers do this?