droppyjs / droppy

Self-hosted file storage
BSD 2-Clause "Simplified" License
104 stars 12 forks source link

Empty folders are ignored #92

Open vahtos opened 5 months ago

vahtos commented 5 months ago

Empty directories are not uploaded (drag and drop and "upload folder from disk"). No error message is displayed, or in the console, the directories just never appear.

This includes directories which are empty, and nested in other directories that are not empty. In that case, only directories with files in them, and the files are uploaded. Interestingly, if you nest two empty directories, they are both ignored as well.

vahtos commented 5 months ago

Narrowed this down and found the culprit is Uppie:

Empty directories are excluded from the results by all browsers as dictated by the spec.

I'm not sure what is meant by "the spec", but I think this issue gives more context for the reasoning:

Some variants of the older APIs might allow them but I remember there is no cross-browser solution.