Skip to content

Reject directory uploads in project inputs #573 - #2262

Open
0Cymantek0 wants to merge 1 commit into
aboutcode-org:mainfrom
0Cymantek0:issue-573-reject-folder-upload
Open

0Cymantek0 wants to merge 1 commit into
aboutcode-org:mainfrom
0Cymantek0:issue-573-reject-folder-upload

Conversation

@0Cymantek0

@0Cymantek0 0Cymantek0 commented Oct 14, 2026 •

Copy link
Copy Markdown

Issues

Changes

  • Detection: Reject dropped directories in dropHandler via webkitGetAsEntry().isDirectory while preserving valid files.
  • UI Warning: Display a dismissible banner showing skipped folder count with dropzone feedback and light/dark theme support.
  • Docs: Note in docs/inputs.rst that directories must be compressed (.zip, .tar.gz) before upload.
Before After
before_rejection after_rejection

The PR is merge ready and tested well locally. I'll add another optional PR shortly with a more larger scope UI and UX enhancement. kept this PR separate as this is a targetted fix towards the existing issue.

Checklist

  • I have read the contributing guidelines
  • I have linked an existing issue above
  • I have added unit tests covering the new code
  • I have reviewed and understood every line of this PR

Detect and reject dropped folders using webkitGetAsEntry().isDirectory.
Display a docked notification indicating the count of skipped folders.
Update docs/inputs.rst to note that directory uploads are unsupported
and must be compressed into an archive before uploading.

Signed-off-by: Shuvagata Dey <cymantekfnosz@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update docs and show message that uploading folders isn't supported

1 participant