Skip to content

[Bug]: File Upload Fails with "Upload as Text" Option When Web Search is Enabled #8041

@adrienaitp

Description

@adrienaitp

What happened?

When Web Search is enabled and a file is attached, the UI forces a choice of upload type. If "Upload as Text" is selected instead of "Upload for File Search", the upload fails. This same behavior occurs when using an agent that has Web Search enabled by default.

Expected Behavior

The file should successfully upload when selecting "Upload as Text" regardless of whether Web Search is enabled.

Actual Behavior

The file upload fails when selecting "Upload as Text" if Web Search is enabled. It seems the system is expecting the user to select "Upload for File Search" in this context.

Additional Context

This appears to be a UI/UX issue where the file upload options aren't correctly handling the context of Web Search being enabled. The system should either:

  1. Only show appropriate upload options based on the current context, or
  2. Properly handle all presented upload options regardless of context

Version Information

  • LibreChat Version: 0.7.8
  • Browser: Chrome
  • Operating System: mac
  • Deployment Method: azure container apps and even docker localhost

Steps to Reproduce

Steps to Reproduce

  1. Enable Web Search functionality for a conversation or use an agent with Web Search enabled by default
  2. Attempt to upload a file to the conversation
  3. When presented with upload options, select "Upload as Text"
  4. Observe that the file upload fails

What browsers are you seeing the problem on?

Chrome

Relevant log output

NA

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions