WICG / entries-api

Spec defining browser support for file/directory upload by drag-and-drop
https://wicg.github.io/entries-api/
Other
41 stars 9 forks source link

Behavior if both webkitdirectory and accept attributes are specified #28

Open inexorabletash opened 5 years ago

inexorabletash commented 5 years ago

See https://bugs.chromium.org/p/chromium/issues/detail?id=102984

The expectation of at least one developer is that in this case:

<input type=file webkitdirectory accept="image/*">

... then if a directory is chosen, only image files would be included.

In Chrome, the accept attribute is ignored (similar to the multiple case in #24)

We should verify behavior in Firefox/Safari/Edge

inexorabletash commented 5 years ago

Firefox seems to ignore accept here as well.