RESOLVED INVALID 83854
<input type=file> accepts dragged folders
https://bugs.webkit.org/show_bug.cgi?id=83854
Summary <input type=file> accepts dragged folders
Félix Cloutier
Reported 2012-04-12 19:32:53 PDT
Created attachment 137028 [details] A page with an <input type=file> element where you can try to drop folders Folders dropped over an <input type=file> are accepted, and I'm fairly sure they shouldn't (at least, the file picker doesn't let you select them). You can try it with the very simple test case attached.
Attachments
A page with an <input type=file> element where you can try to drop folders (154 bytes, text/html)
2012-04-12 19:32 PDT, Félix Cloutier
no flags
Félix Cloutier
Comment 1 2012-04-12 19:33:30 PDT
Rakesh
Comment 2 2012-04-19 11:36:10 PDT
(In reply to comment #0) > Created an attachment (id=137028) [details] > A page with an <input type=file> element where you can try to drop folders > > Folders dropped over an <input type=file> are accepted, and I'm fairly sure they shouldn't (at least, the file picker doesn't let you select them). You can try it with the very simple test case attached. Behavior observed on other browsers: - IE and Opera do not allow drag n drop of files on input. - Firefox and webkit behavior is same, they accept folder as well as files. Also the specs @ http://www.whatwg.org/specs/web-apps/current-work/#states-of-the-type-attribute says that "File names may contain partial paths, e.g. in the case that a user has selected an entire directory hierarchy." I am not sure if that means input should have file list filled with all the files of the folder content. What about sub-folders then?
Anne van Kesteren
Comment 3 2024-08-29 06:05:15 PDT
This is the realm of user agent UI and that is not standardized.
Note You need to log in before you can comment on or make changes to this bug.