mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #549] [MERGED] Bugfix: Fix toast error popup when front end can't figure out file type. #20371
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:main📝 Commits (1)
7eea3efcopy 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.