Fix file picker extension filtering

This commit is contained in:
“Naeel”
2026-09-05 09:55:44 +03:00
parent a965f181d9
commit 6fea5bce49
6 changed files with 95 additions and 17 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ with (ROOT / "config.json").open(encoding="utf-8") as config_file:
CONFIG = json.load(config_file)
VERSION = "0.1.4"
VERSION = "0.1.6"
app = Flask(__name__, template_folder="templates", static_folder="static")
+2 -2
View File
@@ -14,8 +14,8 @@
<p class="lede">Выберите отдельные файлы или целую папку. Архивы будут раскрыты автоматически.</p>
</header>
<section class="toolbar" aria-label="Выбор файлов">
<input id="file-input" type="file" multiple hidden>
<input id="folder-input" type="file" webkitdirectory directory multiple hidden>
<input id="file-input" type="file" accept=".pdf,.doc,.docx,.txt,.md,.zip" multiple hidden>
<input id="folder-input" type="file" accept=".pdf,.doc,.docx,.txt,.md,.zip" webkitdirectory directory multiple hidden>
<button id="files-btn" type="button">Выбрать файлы</button>
<button id="folder-btn" type="button" class="secondary">Выбрать папку</button>
<button id="clear-btn" type="button" class="quiet">Очистить</button>