mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[PR #6117] [CLOSED] feat:Add S3 Upload Support via StorageProvider Integration #44872
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/6117
Author: @ssnnow
Created: 10/11/2024
Status: ❌ Closed
Base:
dev← Head:dev_S3_0.3.32📝 Commits (10+)
51ce9c1S3 storage support8ba4c25add env config example5523797Optimization: Removed unused code to improve readability and maintainability.4c791d7refac49d7a4drefac90ec41bMerge branch 'dev' into dev_S3_0.3.326f4621frefacc6ea3fefix91ca5a4refac: storage provider should abide by separation of concerns4f0bb4efix📊 Changes
5 files changed (+148 additions, -35 deletions)
View changed files
📝
.env.example(+9 -1)📝
backend/open_webui/apps/retrieval/main.py(+1 -4)📝
backend/open_webui/apps/webui/routers/files.py(+8 -30)📝
backend/open_webui/config.py(+13 -0)➕
backend/open_webui/storage/provider.py(+117 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
The StorageProvider was integrated to replace direct file handling with the Files class. The file retrieval and processing operations now use storage.get_file_by_id() instead of Files.get_file_by_id(). Additionally, file updates and metadata management are switched to the corresponding storage.update_* methods.
Added
Changed
Deprecated
Removed
Fixed
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.