Skip to content

Conversation

emerzon
Copy link
Contributor

@emerzon emerzon commented Jul 2, 2025

Description

  • Fixes the broken Drag&Drop file upload feature due to inconsistent/mixed up usage of both /api/user/file/upload and /api/chat/file, unifying uploads mechanism to use Chat API.
  • Add a spinning loader for when file upload is ongoing

How Has This Been Tested?

  • Drag and drop a file directly in the chat box (Not the + File feature)
  • Check that a spinning wheel displays while file uploads, and blocks user interaction until upload completes;

…t upload API;

Add a spinning loader for when file upload is ongoing
@emerzon emerzon requested a review from a team as a code owner July 2, 2025 02:34
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Unifies file upload mechanisms in the chat interface by consolidating upload endpoints and improving UX feedback during uploads.

  • Consolidated upload endpoints to exclusively use /api/chat/file instead of mixing with /api/user/file/upload in web/src/app/chat/ChatPage.tsx
  • Added blocking spinner UI feedback during file uploads to prevent premature user interactions in web/src/app/chat/input/ChatInputBar.tsx
  • Implemented unified file handling by combining selected and current message files into a single array for consistent processing
  • Improved error handling with specific error messages for upload failures
  • Removed redundant uploadFile prop from useDocumentsContext to streamline the upload flow

2 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

Copy link

vercel bot commented Jul 2, 2025

@emerzon is attempting to deploy a commit to the Danswer Team on Vercel.

A member of the Team first needs to authorize it.

…/undefined IDs are now filtered out before creating file descriptors
Copy link

This PR is stale because it has been open 75 days with no activity. Remove stale label or comment or this will be closed in 15 days.

@github-actions github-actions bot added the Stale label Sep 15, 2025
Copy link

This PR was closed because it has been stalled for 90 days with no activity.

@github-actions github-actions bot closed this Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant