forked from anthropics/anthropic-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add file upload functionality to chat window
Fixes anthropics#19 Add file upload functionality to the chat window and display uploaded files. * **File Upload Handling:** - Add file upload functionality to `customer-support-agent/app/page.tsx`. - Implement file handling logic for text, image, and PDF files. - Display uploaded files and their contents in the chat window. - Add progress indicators for large file uploads. * **Chat Area Updates:** - Update `customer-support-agent/components/ChatArea.tsx` to handle file uploads and display file previews inline. - Integrate file preview components from `financial-data-analyst/components/FilePreview.tsx`. - Add expandable file preview functionality. * **Right Sidebar Updates:** - Add a separate file section for uploaded files in `customer-support-agent/components/RightSidebar.tsx`. - Display thumbnails or icons for each uploaded file. - Open a modal with a preview when clicking on a file. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/anthropics/anthropic-quickstarts/issues/19?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
bbff506
commit cad3807
Showing
3 changed files
with
182 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters