mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 15:54:15 -05:00
Add ENV flag for disabling File Uploads/RAG #2203
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?
Originally created by @gaby on GitHub (Sep 26, 2024).
Is your feature request related to a problem? Please describe.
Currently Open-WebUI allows users to upload files to a chat. This requires using RAG and also downloads a model in the background, and no limits to size.
When running Open-WebUI with multiple users there's a chance someone uploads a massive file affecting users or the host running Open-WebUI. For our use case we do not use the RAG feature and the uploads just sit spinning since the model required is not available.
Describe the solution you'd like
Add an ENV variable that allows disabling any kind of file uploads within a Chat.
Describe alternatives you've considered
Running a cronjob and deleting any files found in
/data/docs.Additional context
Add any other context or screenshots about the feature request here.
@rgaricano commented on GitHub (Sep 26, 2024):
You can config it on:
Admin Panel / Settings / Documents / Files / Max Upload Size & Max Upload Count
(setting to 0 doesn`t permit uploads)