Bug 71858 - Drag and dropping files over <input type=file accept> does not filter out unacceptable files
Summary: Drag and dropping files over <input type=file accept> does not filter out una...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.7
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-11-08 14:35 PST by Jon Lee
Modified: 2011-11-09 17:14 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Lee 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.
Comment 1 Radar WebKit Bug Importer 2011-11-08 14:35:52 PST
<rdar://problem/10415311>
Comment 2 Alexey Proskuryakov 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?