WICG / file-system-access

Expose the file system on the user’s device, so Web apps can interoperate with the user’s native applications.
https://wicg.github.io/file-system-access/
Other
669 stars 66 forks source link

Uploading multiple folders #343

Open Andrey9300 opened 3 years ago

Andrey9300 commented 3 years ago

I have't found information about uploading multiple folders, only multiple files. New api showDirectoryPicker() does not allow to do this. Uploading by drag and drop not quite the same. Can you tell me why new/old api can't upload multiple folders at once, there is a reason for this?

In Safari this works)

mkruisselbrink commented 3 years ago

When originally designing the API I thought none of the operating system's directory picker dialogs supported selecting multiple directories. Later I learned that mac does indeed support this. As such, I guess it might make sense to add an option to the API to let the user select multiple files. On most platforms the user wouldn't actually be able to do so, but having the option in the API seems fine.