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: FormsAssignee: 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
Reported 2011-11-08 14:35:29 PST
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
Radar WebKit Bug Importer
Comment 1 2011-11-08 14:35:52 PST
Alexey Proskuryakov
Comment 2 2011-11-09 17:14:14 PST
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?
Note You need to log in before you can comment on or make changes to this bug.