Fixes infinite spinner when File Manager returns 404 (no files exist)
Changes
Added try-catch error handling to doSearch and loadMoreFiles functions
When API returns 404 or any error, show "No files found" instead of infinite spinner
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
Note
Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
🔄 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/21047
**Author:** [@Classic298](https://github.com/Classic298)
**Created:** 1/29/2026
**Status:** ✅ Merged
**Merged:** 1/30/2026
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `file-management-404-handling`
---
### 📝 Commits (2)
- [`adae0c3`](https://github.com/open-webui/open-webui/commit/adae0c3284e7d3600745bd849094cc06c38f03c7) fix 404
- [`6aabdd0`](https://github.com/open-webui/open-webui/commit/6aabdd0caf070fcfba2227d33db2cfd1071439bf) Merge branch 'dev' into file-management-404-handling
### 📊 Changes
**1 file changed** (+20 additions, -9 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/components/layout/FilesModal.svelte` (+20 -9)
</details>
### 📄 Description
## Summary
Fixes infinite spinner when File Manager returns 404 (no files exist)
## Changes
- Added try-catch error handling to doSearch and loadMoreFiles functions
- When API returns 404 or any error, show "No files found" instead of infinite spinner
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
> [!NOTE]
> Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
---
<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/21047
Author: @Classic298
Created: 1/29/2026
Status: ✅ Merged
Merged: 1/30/2026
Merged by: @tjbck
Base:
dev← Head:file-management-404-handling📝 Commits (2)
adae0c3fix 4046aabdd0Merge branch 'dev' into file-management-404-handling📊 Changes
1 file changed (+20 additions, -9 deletions)
View changed files
📝
src/lib/components/layout/FilesModal.svelte(+20 -9)📄 Description
Summary
Fixes infinite spinner when File Manager returns 404 (no files exist)
Changes
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.