7

We have recently developed a mass uploader that uses the webkitdirectory functionality in order to be able to upload directories and parse all inner files.

However the uploading of multiple root directories is not possible even after using multiple attribute.

In Mozilla's documentation, multiple is mentioned & used in the examples.

In this example, a directory picker is presented which lets the user choose one or more directories. When the change event occurs, a list of all files contained within the selected directory hierarchies is generated and displayed.

But basically is useless. With or without multiple produces the same result. We're only able to select 1 directory.

How can we have the input with webkitdirectory allow us to select multiple directories? I would truly appreciate any ideas or hacks.

MBT
  • 21,733
  • 19
  • 84
  • 102
  • Shy of adding many inputs, each with the webkitdirectory attribute set, each uploading just one directory... I don't see this happening. Sounds like you'd be better off getting the user to zip up the files they care about, or piggyback on something like Dropbox that you can drop directories of files into within your OS. – scunliffe Mar 10 '18 at 00:59
  • Did you find a solution to this? – MBT Aug 06 '20 at 11:32
  • No, not yet but we had found some workaround (non-related to this) – Chrysovalantis Koutsoumpos Aug 07 '20 at 07:55

0 Answers0