Bug 63898
| Summary: | Folders should be filtered from file Drag and Drop | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | william.meleyal |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | UNCONFIRMED | ||
| Severity: | Normal | CC: | ap, chrish, jonlee, kendsnyder, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jsfiddle.net/meleyal/4CX6X/15/ | ||
william.meleyal
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/
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Hynes
Bump. This is pretty important to get fixed.
Radar WebKit Bug Importer
<rdar://problem/10455287>
Ken Snyder
Still dealing with this bug in 2018. I'd love to see it fixed.