vaadin / web-components

A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
https://vaadin.com/docs/latest/components
470 stars 83 forks source link

[upload] Ignore specific or all hidden files when uploading directory #8161

Open sissbruecker opened 4 days ago

sissbruecker commented 4 days ago

Describe your motivation

Since https://github.com/vaadin/web-components/pull/8032 allows uploading a directory with drag and drop. This adds all files, including hidden files. For example, on macOS you often have a .DS_Store file that the OS adds to directories automatically.

Describe the solution you'd like

We should ignore hiden files, either a set of specific ones such as .DS_Store or all of them. One challenge here is detecting a hidden file - on Mac and Linux those should start with a dot (.), however on Windows files have a specific marker for that which can not be queried through browser APIs.

Describe alternatives you've considered

No response

Additional context

No response