New issue
Advanced search Search tips

Issue 599576 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Drag/Drop of directory results in bogus File entry in DataTransfer.files / HTMLInputElement.files

Project Member Reported by jsb...@chromium.org, Mar 31 2016

Issue description

Repro:

1. Add <input type=file> to a page
2. Drag&drop a folder onto it

Expected: Drop-action is not supported
Actual: Drop permitted, "change" event fires

3. Inspect the HTMLInputElement's files collection

Expected: files collection contains useful File elements
Actual: files contains a single File

* Has the name of the folder
* Has a size e.g. 4096
* If you attempt to read the content with a FileReader the operations fails with name: "NotFoundError", message: "A requested file or directory could not be found at the time an operation was processed."

NOTE: This also applies to drop targets via DataTransfer.files
 
dir.html
657 bytes View Download

Comment 1 by jsb...@chromium.org, Mar 31 2016

This also applies to DataTransfer.items if getAsFile() is called on a directory item.
Labels: EntriesAPI

Comment 3 by joea...@gmail.com, Apr 19 2017

Any chance we will get the bug fix soon?
Project Member

Comment 4 by sheriffbot@chromium.org, Apr 19 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by tkent@chromium.org, Apr 22 2018

Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)
Components: Blink>Storage>FileAPI
Components: -Blink>FileAPI

Sign in to add a comment