mirror of
https://github.com/sigoden/dufs.git
synced 2026-06-07 15:59:03 +03:00
[GH-ISSUE #702] can not upload folders by click the upload btn #8811
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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?
Browser behavior is typically as follows:
A regular
input[type=file]→ selects filesAdding
webkitdirectory→ only allows selecting a folderTherefore, many websites provide two separate buttons:
<input type="file" multiple>upload files<input type="file" webkitdirectory multiple>upload folersI haven't figured out the situation of putting two buttons yet.
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.
@sigoden commented on GitHub (May 7, 2026):
Later on, I plan to add a
--setoption 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.