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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
dev← Head:dev📝 Commits (1)
df824dbfix: 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
Deprecated
Removed
Fixed
Can no longer send empty files
Security
Breaking Changes
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.