WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@mohdanas86
Copy link

Summary

Adds "Upload Folder Here" option to context menus, fixing UX inconsistency where drag-and-drop supported folders but the right-click context menu only supported individual files.

Changes

  • Added folder upload file input with webkitdirectory attribute in UIDesktop.js
  • Created new init_folder_upload_using_dialog() handler function in helpers.js
  • Added "Upload Folder Here" context menu items in both desktop and window views
  • Added translation string upload_folder_here in en.js

Technical Details

  • Reuses existing upload_items() function for consistency
  • Uses HTML5 webkitdirectory attribute (supported in all modern browsers)
  • Maintains separation between file and folder upload for clear UX

Testing Performed

  • [✓] Right-click on desktop → "Upload Folder here" opens folder picker
  • [✓] Right-click in window → "Upload Folder here" opens folder picker
  • [✓] Folder structure is preserved during upload
  • [✓] Multiple files within folder are uploaded correctly
  • [✓] Works in Chrome/Edge (tested on Windows)

Screenshots

Screenshot 2025-12-02 092923

Related Issues

Closes #2080

Checklist

  • [✓] Code follows project style guidelines
  • [✓] Changes are backwards compatible
  • [✓] Translation string added for English

- Add 'Upload Folder Here' option to desktop and window context menus
- Create new folder upload input with webkitdirectory attribute
- Implement init_folder_upload_using_dialog handler function
- Add translation string for 'upload_folder_here'

Fixes UX inconsistency where drag-and-drop supports folders but
right-click context menu only supported individual files.
@CLAassistant
Copy link

CLAassistant commented Dec 2, 2025

CLA assistant check
All committers have signed the CLA.

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.

feat: Add folder upload support to context menu "Upload Here"

2 participants