[GH-ISSUE #702] can not upload folders by click the upload btn #7387

Closed
opened 2026-06-01 00:23:18 +03:00 by zhus · 2 comments
Owner

Originally created by @yuf19-2022 on GitHub (May 6, 2026).
Original GitHub issue: https://github.com/sigoden/dufs/issues/702

Problem

the file index.html <div class="control upload-file hidden" title="Upload files/folders">
in fact, can not upload folders by click the upload btn.

Configuration

Log

Screenshots/Media

Environment Information

  • Dufs version:
  • Browser/Webdav info:
  • OS info:
  • Proxy server (if any):
Originally created by @yuf19-2022 on GitHub (May 6, 2026). Original GitHub issue: https://github.com/sigoden/dufs/issues/702 **Problem** the file index.html `<div class="control upload-file hidden" title="Upload files/folders">` in fact, can not upload folders by click the upload btn. **Configuration** <!-- Please specify the Dufs command-line arguments or configuration used. --> <!-- If the issue is related to authentication/permissions, include auth configurations while concealing sensitive information (e.g., passwords). --> **Log** <!-- Attach relevant log outputs that can help diagnose the issue. --> **Screenshots/Media** <!-- If applicable, add screenshots or videos that help illustrate the issue, especially for WebUI problems. --> **Environment Information** - Dufs version: - Browser/Webdav info: - OS info: - Proxy server (if any): <!-- e.g. nginx, cloudflare -->
zhus closed this issue 2026-06-01 00:23:18 +03:00
Author
Owner

@sigoden commented on GitHub (May 7, 2026):

Currently, only dragging and dropping folders is supported for uploading directories. Uploading directories by clicking a button is not supported at this time.

Why?

  1. It is impossible to make the "Upload Files" button and the "Upload Folder" button behave exactly the same way.

Browser behavior is typically as follows:

A regular input[type=file] → selects files
Adding webkitdirectory → only allows selecting a folder

Therefore, many websites provide two separate buttons:

<input type="file" multiple>upload files
<input type="file" webkitdirectory multiple>upload folers

I haven't figured out the situation of putting two buttons yet.

  1. Firefox has poor support for this feature.

As of now:

Chrome / Edge: very good support
Firefox: historically unstable
Safari: partial support

This is therefore a "de facto standard," not an official HTML standard.

<!-- gh-comment-id:4393447667 --> @sigoden commented on GitHub (May 7, 2026): Currently, only dragging and dropping folders is supported for uploading directories. Uploading directories by clicking a button is not supported at this time. Why? 1. It is impossible to make the "Upload Files" button and the "Upload Folder" button behave exactly the same way. Browser behavior is typically as follows: A regular `input[type=file]` → selects files Adding `webkitdirectory` → only allows selecting a folder Therefore, many websites provide two separate buttons: `<input type="file" multiple>upload files` `<input type="file" webkitdirectory multiple>upload folers` I haven't figured out the situation of putting two buttons yet. 2. Firefox has poor support for this feature. As of now: Chrome / Edge: very good support Firefox: historically unstable Safari: partial support This is therefore a "de facto standard," not an official HTML standard.
Author
Owner

@sigoden commented on GitHub (May 7, 2026):

Later on, I plan to add a --set option to allow users to customize some internal settings, which may include the token expiration constant you mentioned, but it won't be discussed in this issue.

<!-- gh-comment-id:4393487278 --> @sigoden commented on GitHub (May 7, 2026): Later on, I plan to add a `--set` option to allow users to customize some internal settings, which may include the token expiration constant you mentioned, but it won't be discussed in this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#7387