forked from bots-garden/ori
| 🛟 Updated. | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | id: 17 | |
| 3 | title: Upload files with drag and drop | |
| 4 | state: open | |
| 5 | author: | |
| 6 | name: k33g | |
| 7 | email: ph.charriere@gmail.com | |
| 8 | createdAt: 2026-09-18T00:00:00.000Z | |
| 9 | updatedAt: 2026-09-18T00:00:00.000Z | |
| 10 | labels: [] | |
| 11 | body: | | |
| 12 | Add the ability to upload files to the workspace using drag and drop. | |
| 13 | ||
| 14 | Requirements: | |
| 15 | - Drag and drop files from the host OS into the browser | |
| 16 | - Upload files to the workspace directory (under `--cwd`) | |
| 17 | - Visual feedback during drag (drop zone highlight) | |
| 18 | - Progress indication for uploads | |
| 19 | - Support for multiple files | |
| 20 | - Support for directories (optional) | |
| 21 | ||
| 22 | Implementation considerations: | |
| 23 | - Backend: New endpoint for file uploads (e.g., `POST /api/upload` or extend `PUT /api/file`) | |
| 24 | - Frontend: Drag and drop handlers on the workspace panel or file tree | |
| 25 | - Should respect the existing 5 MiB file size limit (or adjust if needed) | |
| 26 | - Binary file handling (currently rejected with 415) | |
| 27 | - Destination path selection (drop on directory vs. root) | |
| 28 | - File tree refresh after upload | |
| 29 | ||
| 30 | Related existing functionality: | |
| 31 | - `PUT /api/file` already handles file writes (text only, <5 MiB) | |
| 32 | - File tree displays the workspace contents | |
| 33 | - Binary files currently rejected (415 Unsupported Media Type) | |
| 34 | ||
| 35 | Open questions: | |
| 36 | - Allow binary file uploads or keep text-only restriction? | |
| 37 | - Maximum total upload size (per request or cumulative)? | |
| 38 | - Overwrite confirmation for existing files? | |
| 39 | - Should drop target be the entire workspace panel, specific file tree area, or both? | |
| 40 | tasks: [] | |
| 41 | comments: [] |