Skip to content

Restore Android Multifile and Folder uploads and fix Markdown uploads on all targets#32

Merged
EdgeTypE merged 2 commits into
EdgeTypE:mainfrom
WhiteLicorice:fix/markdown-file-uploads
May 13, 2026
Merged

Restore Android Multifile and Folder uploads and fix Markdown uploads on all targets#32
EdgeTypE merged 2 commits into
EdgeTypE:mainfrom
WhiteLicorice:fix/markdown-file-uploads

Conversation

@WhiteLicorice
Copy link
Copy Markdown
Contributor

This pull request restores the support for native Android file and folder picking in the app (reverted by accident), enabling users to select multiple files or entire folders (with subfolders) using the Android system picker. The integration includes backend support in the Android code, a JavaScript bridge to communicate results to the web UI, and updates to the Svelte UI to leverage the new capabilities.

It also improves file validation and error handling, and updates the persona and skill upload to restrict to .md files, not to .json like it originally did (fix relevant for all targets).

Android native file/folder picker integration:

  • Added support for launching the Android system file and folder pickers from the app, handling both multiple file selection and folder tree traversal, with results delivered asynchronously to the web UI via a custom event. Only text-based files with whitelisted extensions are accepted, and large files or certain directories (e.g., node_modules, .git) are skipped.

  • Exposed methods in the WebViewBridge to allow JavaScript to request file/folder picking, receive results, and sanitize/validate requests. Added tests for request validation and handler invocation.

Web UI and Svelte integration:

  • Updated Svelte UI (AttachMenu.svelte) to use the new Android native file/folder picker when available, including error handling and proper injection of selected files or folders. The UI now checks for picker availability and displays appropriate messages if the feature is unsupported.

…ort .md file uploads

- Added `nativePickFiles` function to handle file and folder picking via AndroidBridge.
- Introduced `isNativeFilePickerAvailable` to check for picker availability.
- Enhanced `WebViewBridge` to handle file picking requests and deliver results to JavaScript.
- Updated `AttachMenu.svelte` and `ProjectsManager.svelte` to utilize the new native picker.
- Implemented folder upload functionality with workspace file generation.
- Added tests for the new file picker functionality and folder file building.
@EdgeTypE EdgeTypE merged commit 7445792 into EdgeTypE:main May 13, 2026
2 checks passed
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.

2 participants