Bug 63898 - Folders should be filtered from file Drag and Drop
: Folders should be filtered from file Drag and Drop
Status: UNCONFIRMED
: WebKit
Forms
: 528+ (Nightly build)
: Unspecified Unspecified
: P2 Normal
Assigned To:
: http://jsfiddle.net/meleyal/4CX6X/15/
: InRadar
:
:
  Show dependency treegraph
 
Reported: 2011-07-04 04:47 PST by
Modified: 2011-11-16 09:05 PST (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2011-07-04 04:47:02 PST
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.


http://stackoverflow.com/questions/4857846/html5-drag-and-drop-detect-folders-in-safari-filelist-file
http://jsfiddle.net/meleyal/4CX6X/15/
------- Comment #1 From 2011-11-16 08:49:32 PST -------
Bump. This is pretty important to get fixed.
------- Comment #2 From 2011-11-16 09:05:35 PST -------
<rdar://problem/10455287>