Open inexorabletash opened 6 years ago
Clicking on an input control generated via:
document.body.appendChild(Object.assign(document.createElement('input'), {type: 'file', webkitdirectory: true, multiple: true}))
multiple
has no effectmultiple
has no effectmultiple
has no effectwebkitRelativePath
for each file includes the selected directory containing it (e.g. audio/1.mp3
, images/2.png
, etc)
Raised by @triblondon over in https://github.com/w3ctag/design-reviews/issues/215
What is the behavior if
<input type=file webkitdirectory multiple>
is used, i.e. if bothwebkitdirectory
andmultiple
attributes are specified? Does one attribute override the other, or can multiple directories be selected?The current behavior in Chrome is that
webkitdirectory
overridesmultiple
, and the latter has no effect. Only a single directory can be selected. I have not yet tested other implementations.This should be specified somewhere. (Presumably in HTML eventually, but here for now.)