[Webkit-unassigned] [Bug 83854] <input type=file> accepts dragged folders

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 19 11:36:10 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=83854


Rakesh <rakesh.kn at motorola.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakesh.kn at motorola.com




--- Comment #2 from Rakesh <rakesh.kn at motorola.com>  2012-04-19 11:36:10 PST ---
(In reply to comment #0)
> Created an attachment (id=137028)
 --> (https://bugs.webkit.org/attachment.cgi?id=137028&action=review) [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?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list