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?
🔄 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/4917
**Author:** [@Yanyutin753](https://github.com/Yanyutin753)
**Created:** 8/26/2024
**Status:** ✅ Merged
**Merged:** 8/27/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `upload_files_limit`
---
### 📝 Commits (10+)
- [`b6da4ba`](https://github.com/open-webui/open-webui/commit/b6da4baa979ac853afca252e1fe240e31153597b) 💄 Limit the size and number of uploaded files
- [`b01d72a`](https://github.com/open-webui/open-webui/commit/b01d72ade3de0187d026300a9d2df94533aad2bc) 💄Fix format
- [`7754785`](https://github.com/open-webui/open-webui/commit/775478534ad7b4574cfc56f57d8ef913c9e68a0b) 👀 Fix Common users cannot upload files
- [`ebca735`](https://github.com/open-webui/open-webui/commit/ebca735f5ee08d948bd1a5b2a4f16f50e7ee17aa) 💄Fix format
- [`29cbdbc`](https://github.com/open-webui/open-webui/commit/29cbdbcadd7cb781f23ca606ab2a8a77e6683235) 💄Fix format
- [`6004096`](https://github.com/open-webui/open-webui/commit/600409682e8ef1f88aa7728a0260c29b355dd1b2) refac: do not change default behaviour
- [`09cba5b`](https://github.com/open-webui/open-webui/commit/09cba5b87abd8773f5b027c91f050946ef9db5cb) refac: rm sub standard code
- [`69c4687`](https://github.com/open-webui/open-webui/commit/69c4687a535bc679d06225909192ceea02e6dc74) refac
- [`ef28330`](https://github.com/open-webui/open-webui/commit/ef28330c1a255ba1f8adce8a669bf985d94ba6b2) refac: do NOT change default behaviour in a PR
- [`628310b`](https://github.com/open-webui/open-webui/commit/628310b12b41ec3439b6c1b8e2872996cfdeff6f) refac
### 📊 Changes
**50 files changed** (+474 additions, -57 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/apps/rag/main.py` (+23 -0)
📝 `backend/config.py` (+20 -0)
📝 `backend/main.py` (+4 -0)
📝 `src/lib/components/admin/Settings.svelte` (+4 -1)
📝 `src/lib/components/admin/Settings/Documents.svelte` (+75 -8)
📝 `src/lib/components/chat/Chat.svelte` (+10 -0)
📝 `src/lib/components/chat/MessageInput.svelte` (+47 -48)
📝 `src/lib/components/workspace/Documents.svelte` (+1 -0)
📝 `src/lib/i18n/locales/ar-BH/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/bg-BG/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/bn-BD/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/ca-ES/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/de-DE/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/dg-DG/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/en-GB/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/en-US/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/es-ES/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/fa-IR/translation.json` (+7 -0)
📝 `src/lib/i18n/locales/fi-FI/translation.json` (+7 -0)
_...and 30 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


#### Warning


---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/4917
Author: @Yanyutin753
Created: 8/26/2024
Status: ✅ Merged
Merged: 8/27/2024
Merged by: @tjbck
Base:
dev← Head:upload_files_limit📝 Commits (10+)
b6da4ba💄 Limit the size and number of uploaded filesb01d72a💄Fix format7754785👀 Fix Common users cannot upload filesebca735💄Fix format29cbdbc💄Fix format6004096refac: do not change default behaviour09cba5brefac: rm sub standard code69c4687refacef28330refac: do NOT change default behaviour in a PR628310brefac📊 Changes
50 files changed (+474 additions, -57 deletions)
View changed files
📝
backend/apps/rag/main.py(+23 -0)📝
backend/config.py(+20 -0)📝
backend/main.py(+4 -0)📝
src/lib/components/admin/Settings.svelte(+4 -1)📝
src/lib/components/admin/Settings/Documents.svelte(+75 -8)📝
src/lib/components/chat/Chat.svelte(+10 -0)📝
src/lib/components/chat/MessageInput.svelte(+47 -48)📝
src/lib/components/workspace/Documents.svelte(+1 -0)📝
src/lib/i18n/locales/ar-BH/translation.json(+7 -0)📝
src/lib/i18n/locales/bg-BG/translation.json(+7 -0)📝
src/lib/i18n/locales/bn-BD/translation.json(+7 -0)📝
src/lib/i18n/locales/ca-ES/translation.json(+7 -0)📝
src/lib/i18n/locales/ceb-PH/translation.json(+7 -0)📝
src/lib/i18n/locales/de-DE/translation.json(+7 -0)📝
src/lib/i18n/locales/dg-DG/translation.json(+7 -0)📝
src/lib/i18n/locales/en-GB/translation.json(+7 -0)📝
src/lib/i18n/locales/en-US/translation.json(+7 -0)📝
src/lib/i18n/locales/es-ES/translation.json(+7 -0)📝
src/lib/i18n/locales/fa-IR/translation.json(+7 -0)📝
src/lib/i18n/locales/fi-FI/translation.json(+7 -0)...and 30 more files
📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
Limit the size and number of uploaded files #4327
Warning
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.