left4me/l4d2web/static/js
mwiegand 76cd7ddda0
fix(files-overlay): fall back to getAsFile when webkitGetAsEntry returns null
webkitGetAsEntry() only returns an Entry for real OS-originated drag-drops;
synthetic DragEvents (and some browsers without folder-drop support) get
null back. Per-item fallback to getAsFile() keeps single-file drops working
in those cases without sacrificing the whole-folder upload path on real
OS drops.

Caught while end-to-end testing on the deploy box: a programmatically-
dispatched drop fired the listener and reached preventDefault(), but no
upload row appeared because the file collection loop never enqueued.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 19:11:41 +02:00
..
blueprint-overlay-picker.js feat(l4d2-web): per-overlay server.cfg aliases — expose checkbox + auto-exec 2026-05-09 01:26:31 +02:00
csrf.js chore(l4d2): flatten component layout 2026-05-05 23:47:06 +02:00
file-tree.js fix(l4d2-web): file tree fetches in plain JS — vendored htmx is a stub 2026-05-08 20:23:04 +02:00
files-overlay.js fix(files-overlay): fall back to getAsFile when webkitGetAsEntry returns null 2026-05-09 19:11:41 +02:00
modal.js fix(web): event-delegate modal triggers so HTMX-swapped buttons work 2026-05-09 15:18:27 +02:00
sse.js feat(l4d2-web): server + overlay detail — live-refresh via HTMX, restructured 2026-05-09 01:27:30 +02:00