mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #24771] refactor: remove unused GET /files/ endpoint #98870
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/24771
Author: @Classic298
Created: 5/15/2026
Status: 🔄 Open
Base:
dev← Head:remove-unused-files-list-endpoint📝 Commits (1)
577a365refactor: remove unused GET /files/ endpoint📊 Changes
3 files changed (+0 additions, -85 deletions)
View changed files
📝
backend/open_webui/models/files.py(+0 -25)📝
backend/open_webui/routers/files.py(+0 -29)📝
src/lib/apis/files/index.ts(+0 -31)📄 Description
GET /files/ returned a user's file list with full extracted file content inline by default (content=True), flagged as a High OOM risk in open-webui#22206. It was already paginated server-side (50 per page), but its only frontend wrapper (getFiles in src/lib/apis/files/index.ts) is dead: nothing imports or calls it anywhere in the codebase, and no other code path hits GET /files/. Rather than refactor an endpoint with no callers, remove it.
Drops with it the now-orphaned Files.get_file_list data-layer method and FileListResponse model (both used only by this endpoint), the now-unused PAGE_SIZE constant and FileListResponse import in the files router, and the dead getFiles frontend wrapper.
The paginated GET /files/search endpoint remains the supported way to enumerate a user's files.
Ref: open-webui#22206
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.