Is multiple root level directories upload possible with webkitdirectory?
Asked Answered
C

0

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.

Colmar answered 26/9, 2017 at 19:11 Comment(3)
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.Gristmill
Did you find a solution to this?Olmstead
No, not yet but we had found some workaround (non-related to this)Colmar

© 2022 - 2024 — McMap. All rights reserved.