[PR #4297] [CLOSED] 🤖 Limit the size and number of uploaded files #21443

Closed
opened 2026-04-20 03:30:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: devHead: file_limit


📝 Commits (7)

  • e363f29 💄 Limit the size and number of uploaded files
  • 29c4543 💄 Limit the size and number of uploaded files
  • 255ddae 💄 Limit the size and number of uploaded files
  • 4ec4479 💄 Limit the size and number of uploaded files
  • 1ca02a2 💄 Limit the size and number of uploaded files
  • da6efb6 💄Fix format
  • c1a4a8f 💄Fix format

📊 Changes

47 files changed (+1094 additions, -761 deletions)

View changed files

📝 backend/apps/rag/main.py (+17 -0)
📝 backend/config.py (+12 -0)
📝 src/lib/apis/rag/index.ts (+2 -0)
📝 src/lib/components/admin/Settings/Documents.svelte (+37 -0)
📝 src/lib/components/chat/MessageInput.svelte (+83 -40)
📝 src/lib/components/workspace/Documents.svelte (+27 -8)
📝 src/lib/i18n/locales/ar-BH/translation.json (+5 -0)
📝 src/lib/i18n/locales/bg-BG/translation.json (+5 -0)
📝 src/lib/i18n/locales/bn-BD/translation.json (+5 -0)
📝 src/lib/i18n/locales/ca-ES/translation.json (+5 -0)
📝 src/lib/i18n/locales/ceb-PH/translation.json (+5 -0)
📝 src/lib/i18n/locales/de-DE/translation.json (+5 -0)
📝 src/lib/i18n/locales/dg-DG/translation.json (+5 -0)
📝 src/lib/i18n/locales/en-GB/translation.json (+5 -0)
📝 src/lib/i18n/locales/en-US/translation.json (+5 -0)
📝 src/lib/i18n/locales/es-ES/translation.json (+5 -0)
📝 src/lib/i18n/locales/fa-IR/translation.json (+5 -0)
📝 src/lib/i18n/locales/fi-FI/translation.json (+5 -0)
📝 src/lib/i18n/locales/fr-CA/translation.json (+5 -0)
📝 src/lib/i18n/locales/fr-FR/translation.json (+5 -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

By adjusting the front end, we can make the front end upload files, display the size of each file, and adapt to previous files, which do not display the size of the file

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/4297 **Author:** [@Yanyutin753](https://github.com/Yanyutin753) **Created:** 8/2/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `file_limit` --- ### 📝 Commits (7) - [`e363f29`](https://github.com/open-webui/open-webui/commit/e363f29e41e0ebceafeeb2624ab15a5da75c82df) 💄 Limit the size and number of uploaded files - [`29c4543`](https://github.com/open-webui/open-webui/commit/29c45430d6673ea644681e718d42b1251c1799dc) 💄 Limit the size and number of uploaded files - [`255ddae`](https://github.com/open-webui/open-webui/commit/255ddae64e425ef48faceb4de6677a9fd7f556fa) 💄 Limit the size and number of uploaded files - [`4ec4479`](https://github.com/open-webui/open-webui/commit/4ec44795340b429c04a8ca3798426890d7571f3b) 💄 Limit the size and number of uploaded files - [`1ca02a2`](https://github.com/open-webui/open-webui/commit/1ca02a27167c14230041719558e36a388412fd4d) 💄 Limit the size and number of uploaded files - [`da6efb6`](https://github.com/open-webui/open-webui/commit/da6efb607fbc763334836ba452303c9a747240b0) 💄Fix format - [`c1a4a8f`](https://github.com/open-webui/open-webui/commit/c1a4a8f6d09607cf4d380bbd37e0935552c8bd97) 💄Fix format ### 📊 Changes **47 files changed** (+1094 additions, -761 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/rag/main.py` (+17 -0) 📝 `backend/config.py` (+12 -0) 📝 `src/lib/apis/rag/index.ts` (+2 -0) 📝 `src/lib/components/admin/Settings/Documents.svelte` (+37 -0) 📝 `src/lib/components/chat/MessageInput.svelte` (+83 -40) 📝 `src/lib/components/workspace/Documents.svelte` (+27 -8) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/en-US/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/es-ES/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/fa-IR/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/fi-FI/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/fr-CA/translation.json` (+5 -0) 📝 `src/lib/i18n/locales/fr-FR/translation.json` (+5 -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 ### By adjusting the front end, we can make the front end upload files, display the size of each file, and adapt to previous files, which do not display the size of the file ![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 2026-04-20 03:30:45 -05: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#21443