mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[PR #9596] [MERGED] feat: add s3 key prefix support #22391
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/9596
Author: @engineeringpatrick
Created: 2/7/2025
Status: ✅ Merged
Merged: 2/9/2025
Merged by: @tjbck
Base:
dev← Head:main📝 Commits (3)
5ca6afcadd s3 key prefix support7f82476use key_prefix in rest of S3StorageProviderf8a8218fix bug where '/' was not properly inserted in s3 key strings📊 Changes
2 files changed (+21 additions, -8 deletions)
View changed files
📝
backend/open_webui/config.py(+1 -0)📝
backend/open_webui/storage/provider.py(+20 -8)📄 Description
discussion here
Pull Request Checklist
devbranch.Changelog Entry
S3_KEY_PREFIXenvironment variable.Description
When uploading files to S3, we can only specify the following environment variables: https://docs.openwebui.com/getting-started/env-configuration/#amazon-s3-storage.
By adding a new env var we can allow users to specify a key prefix, which is the path inside of the bucket in which we want to store the file.
Changes
S3_KEY_PREFIXenv var.S3_KEY_PREFIXwhen uploading files to S3.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.