[PR #4306] [CLOSED] 🤖 Limit the size and number of uploaded files #8244

Closed
opened 2025-11-11 17:48:44 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/4306
Author: @Yanyutin753
Created: 8/3/2024
Status: Closed

Base: devHead: tem_files_limit


📝 Commits (10+)

📊 Changes

47 files changed (+481 additions, -70 deletions)

View changed files

📝 backend/apps/rag/main.py (+25 -0)
📝 backend/config.py (+12 -0)
📝 src/lib/apis/rag/index.ts (+29 -0)
📝 src/lib/components/admin/Settings/Documents.svelte (+37 -0)
📝 src/lib/components/chat/MessageInput.svelte (+108 -61)
📝 src/lib/components/workspace/Documents.svelte (+27 -8)
📝 src/lib/i18n/locales/ar-BH/translation.json (+6 -0)
📝 src/lib/i18n/locales/bg-BG/translation.json (+6 -0)
📝 src/lib/i18n/locales/bn-BD/translation.json (+6 -0)
📝 src/lib/i18n/locales/ca-ES/translation.json (+6 -0)
📝 src/lib/i18n/locales/ceb-PH/translation.json (+6 -0)
📝 src/lib/i18n/locales/de-DE/translation.json (+6 -0)
📝 src/lib/i18n/locales/dg-DG/translation.json (+6 -0)
📝 src/lib/i18n/locales/en-GB/translation.json (+6 -0)
📝 src/lib/i18n/locales/en-US/translation.json (+6 -0)
📝 src/lib/i18n/locales/es-ES/translation.json (+6 -0)
📝 src/lib/i18n/locales/fa-IR/translation.json (+6 -0)
📝 src/lib/i18n/locales/fi-FI/translation.json (+6 -0)
📝 src/lib/i18n/locales/fr-CA/translation.json (+6 -0)
📝 src/lib/i18n/locales/fr-FR/translation.json (+6 -0)

...and 27 more files

📄 Description

Pull Request Checklist

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?

Changelog Entry

Description

Limit the size and number of uploaded files #4327

image

image

Warning

image

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/4306 **Author:** [@Yanyutin753](https://github.com/Yanyutin753) **Created:** 8/3/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `tem_files_limit` --- ### 📝 Commits (10+) - [`001c845`](https://github.com/open-webui/open-webui/commit/001c845dab6959a17274057c868313fcd06f4d95) 💄 Limit the size and number of uploaded files - [`dd6856e`](https://github.com/open-webui/open-webui/commit/dd6856e942508d1906564c16e38816004b044d2b) 💄 Limit the size and number of uploaded files - [`81f4819`](https://github.com/open-webui/open-webui/commit/81f48195f1e7aae24a2356787b211a1fbe7a37b0) 💄 Limit the size and number of uploaded files - [`4d23831`](https://github.com/open-webui/open-webui/commit/4d23831832ee3334d29f4d9a899a665387e24650) 💄 Limit the size and number of uploaded files - [`f1e190b`](https://github.com/open-webui/open-webui/commit/f1e190b15f8dfcc96d55dfe65866d0a507ec1e40) 💄 Limit the size and number of uploaded files - [`030fefb`](https://github.com/open-webui/open-webui/commit/030fefb16bcf630ba796ca1db1202b7bc91fa14d) 💄Fix format - [`e901ddf`](https://github.com/open-webui/open-webui/commit/e901ddf25be35b1022694cd841325912bd520a6b) 💄Fix format - [`86a12c0`](https://github.com/open-webui/open-webui/commit/86a12c0027318b5038cda2f5b13ff5de13a6025f) 👀 Fix Common users cannot upload files - [`f561c5b`](https://github.com/open-webui/open-webui/commit/f561c5b08e76259061844158761444870667af48) ⭐ Feat paste upload files and make restrictions - [`b945443`](https://github.com/open-webui/open-webui/commit/b94544331725763744a5ddd880151970258c7649) Merge branch 'dev' of https://github.com/open-webui/open-webui into tem_files_limit ### 📊 Changes **47 files changed** (+481 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/rag/main.py` (+25 -0) 📝 `backend/config.py` (+12 -0) 📝 `src/lib/apis/rag/index.ts` (+29 -0) 📝 `src/lib/components/admin/Settings/Documents.svelte` (+37 -0) 📝 `src/lib/components/chat/MessageInput.svelte` (+108 -61) 📝 `src/lib/components/workspace/Documents.svelte` (+27 -8) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/en-US/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/es-ES/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/fa-IR/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/fi-FI/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/fr-CA/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/fr-FR/translation.json` (+6 -0) _...and 27 more files_ </details> ### 📄 Description # Pull Request Checklist - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [x] **Testing:** Have you written and run sufficient tests for validating the changes? - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? # Changelog Entry ## Description ### Limit the size and number of uploaded files #4327 ![image](https://github.com/user-attachments/assets/ef469240-3cd2-45a4-85c7-f369f900f97b) ![image](https://github.com/user-attachments/assets/0b8b539c-8b28-444e-82e6-77284fc41ce9) #### Warning ![image](https://github.com/user-attachments/assets/d76e001c-8283-4f85-92be-3ed304f6e344) ![image](https://github.com/user-attachments/assets/b10ff1b9-ba68-4710-8400-b94644694105) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:48:44 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#8244