# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.id:17title:Upload files with drag and dropstate:openauthor:name:k33gemail:ph.charriere@gmail.comcreatedAt:2026-09-18T00:00:00.000ZupdatedAt:2026-09-18T00:00:00.000Zlabels:[]body:| Add the ability to upload files to the workspace using drag and drop.
Requirements:
- Drag and drop files from the host OS into the browser
- Upload files to the workspace directory (under `--cwd`)
- Visual feedback during drag (drop zone highlight)
- Progress indication for uploads
- Support for multiple files
- Support for directories (optional)
Implementation considerations:
- Backend: New endpoint for file uploads (e.g., `POST /api/upload` or extend `PUT /api/file`)
- Frontend: Drag and drop handlers on the workspace panel or file tree
- Should respect the existing 5 MiB file size limit (or adjust if needed)
- Binary file handling (currently rejected with 415)
- Destination path selection (drop on directory vs. root)
- File tree refresh after upload
Related existing functionality:
- `PUT /api/file` already handles file writes (text only, <5 MiB)
- File tree displays the workspace contents
- Binary files currently rejected (415 Unsupported Media Type)
Open questions:
- Allow binary file uploads or keep text-only restriction?
- Maximum total upload size (per request or cumulative)?
- Overwrite confirmation for existing files?
- Should drop target be the entire workspace panel, specific file tree area, or both?tasks:[]comments:[]
One first-party cookie so a repeat visit isn't counted twice. No cross-site tracking, nothing stored until you accept. Cookie Policy.