[PR #549] [MERGED] Bugfix: Fix toast error popup when front end can't figure out file type. #20371

Closed
opened 2026-04-20 02:55:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/549
Author: @Marclass
Created: 1/23/2024
Status: Merged
Merged: 1/23/2024
Merged by: @tjbck

Base: mainHead: main


📝 Commits (1)

  • 7eea3ef copy list of file ext from backend to front end

📊 Changes

2 files changed (+10 additions, -3 deletions)

View changed files

📝 backend/apps/rag/main.py (+2 -2)
📝 src/lib/constants.ts (+8 -1)

📄 Description

Was getting error toasts with RAG because file['type'] on front end was empty string sometimes in doc upload. Back end parsed them as expected though.

Copied list of file ext from back end to front end added in #547 and also added typescript extension to both lists.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/549 **Author:** [@Marclass](https://github.com/Marclass) **Created:** 1/23/2024 **Status:** ✅ Merged **Merged:** 1/23/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`7eea3ef`](https://github.com/open-webui/open-webui/commit/7eea3ef3136b8b24895fd60064d2b99ce499ef2b) copy list of file ext from backend to front end ### 📊 Changes **2 files changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/rag/main.py` (+2 -2) 📝 `src/lib/constants.ts` (+8 -1) </details> ### 📄 Description Was getting error toasts with RAG because file['type'] on front end was empty string sometimes in doc upload. Back end parsed them as expected though. Copied list of file ext from back end to front end added in #547 and also added typescript extension to both lists. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 02:55:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#20371