Add ENV flag for disabling File Uploads/RAG #2203

Closed
opened 2025-11-11 15:02:23 -06:00 by GiteaMirror · 1 comment
Owner

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.

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.
Author
Owner

@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)

@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)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#2203