Bug 63898 - Folders should be filtered from file Drag and Drop
Summary: Folders should be filtered from file Drag and Drop
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://jsfiddle.net/meleyal/4CX6X/15/
Keywords: InRadar
Depends on:
Reported: 2011-07-04 04:47 PDT by william.meleyal
Modified: 2018-01-15 12:04 PST (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description william.meleyal 2011-07-04 04:47:02 PDT
In Webkit there is currently no way to determine if a file drop is a folder or not.

* Chrome returns a FileList with a length of 0.

* Firefox returns a FileList with a length of 1, but always reports a file size of 0 for folders, so you can provide a workaround.

* Webkit allows the folder to be dropped, and the file size varies depending on the folder contents.

Comment 1 Chris Hynes 2011-11-16 08:49:32 PST
Bump. This is pretty important to get fixed.
Comment 2 Radar WebKit Bug Importer 2011-11-16 09:05:35 PST
Comment 3 Ken Snyder 2018-01-15 12:04:02 PST
Still dealing with this bug in 2018. I'd love to see it fixed.