Feature: Fully Implement Frontend File Upload Capability
Problem
Currently, the Bindu frontend does not provide users with a complete file upload experience. While file input controls and some drag-and-drop functionality exist (see components like FileDropzone.svelte and ChatInput.svelte), there is no finalized, user-facing workflow for uploading files to participate in a conversation. This affects the product's usability for many scenarios where file attachments and document sharing are important.
Why it Matters
- Users expect to be able to upload, validate, and view files as part of conversational flows (e.g., sharing documents, images, transcripts).
- A seamless upload experience improves collaboration, troubleshooting, and knowledge transfer.
- The backend (
uploadFile.ts) supports file upload, so the missing piece is frontend wiring and UI/UX polish.
Acceptance Criteria
- [ ] Users can select files through a dialog or drag-and-drop interface.
- [ ] Supported file types and size limits are communicated to the user and enforced client-side.
- [ ] Upload progress and error/success feedback are shown clearly in the UI.
- [ ] On successful upload, files are associated with the current conversation and appear in the message stream (see
UploadedFile.svelte). - [ ] Uploaded files are sent to the backend (
uploadFile.ts), and server-side validation is handled. - [ ] The UI prevents file upload if the user is not authenticated where required.
References (existing code for context)
frontend/src/lib/components/chat/FileDropzone.sveltefrontend/src/lib/components/chat/ChatInput.sveltefrontend/src/lib/components/chat/UploadedFile.sveltefrontend/src/lib/server/files/uploadFile.ts
Additional Suggestions
- Enhance visual cues (progress bars, drag overlays, icons) to clarify upload steps.
- Accessibility: Make sure upload controls are keyboard-accessible and screen-reader friendly.
- Consider chunked uploads or optimistic UI updates for large files and slow networks.
This feature will align Bindu's frontend with user expectations and existing backend support, unlocking richer conversational experiences.
hey can i work on this issue?
thank you
Hey, I'm interested in working on this issue. Is it assigned to anyone currently? If not, I'd like to take it up