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> |
||
|---|---|---|
| .. | ||
| css | ||
| js | ||
| vendor | ||