[PR #6109] [MERGED] fix: disallow empty files #60678

Closed
opened 2026-05-06 03:38:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/6109
Author: @JoeyShapiro
Created: 10/11/2024
Status: Merged
Merged: 10/21/2024
Merged by: @tjbck

Base: devHead: dev


📝 Commits (1)

  • df824db fix: disallow empty files

📊 Changes

2 files changed (+11 additions, -0 deletions)

View changed files

📝 backend/open_webui/apps/webui/routers/files.py (+6 -0)
📝 src/lib/components/workspace/Knowledge/Collection.svelte (+5 -0)

📄 Description

Pull Request Checklist

The bound discussion can be found here: https://github.com/open-webui/open-webui/discussions/6108

Changelog Entry

Description

Uploading a file does not work on empty files. This causes a few errors and an endless spinny on the ui for that file.

Added

Changed

A check on the front end and backend to stop empty files before they get to the database

  • [List any changes, updates, refactorings, or optimizations]

Deprecated

Removed

Fixed

Can no longer send empty files

Security

Breaking Changes


Additional Information

Screenshots or Videos

  • [Attach any relevant screenshots or videos demonstrating the changes]

🔄 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/6109 **Author:** [@JoeyShapiro](https://github.com/JoeyShapiro) **Created:** 10/11/2024 **Status:** ✅ Merged **Merged:** 10/21/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`df824db`](https://github.com/open-webui/open-webui/commit/df824db04226c0342ede141e842c68c9efe3ca33) fix: disallow empty files ### 📊 Changes **2 files changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/apps/webui/routers/files.py` (+6 -0) 📝 `src/lib/components/workspace/Knowledge/Collection.svelte` (+5 -0) </details> ### 📄 Description # Pull Request Checklist The bound discussion can be found here: https://github.com/open-webui/open-webui/discussions/6108 # Changelog Entry ### Description Uploading a file does not work on empty files. This causes a few errors and an endless spinny on the ui for that file. ### Added ### Changed A check on the front end and backend to stop empty files before they get to the database - [List any changes, updates, refactorings, or optimizations] ### Deprecated ### Removed ### Fixed Can no longer send empty files ### Security ### Breaking Changes --- ### Additional Information ### Screenshots or Videos - [Attach any relevant screenshots or videos demonstrating the changes] --- <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-05-06 03:38:56 -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#60678