mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #4211] [CLOSED] 💄 Limit the size and number of uploaded files on the front-end to optimize the upload speed #125078
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/4211
Author: @Yanyutin753
Created: 7/30/2024
Status: ❌ Closed
Base:
dev← Head:tem_file_upload📝 Commits (10+)
dd9c435Create translation.js for ms-MYc87c7a8Merge branch 'open-webui:main' into maind0dabf7Update Malay translation until line 31645ad0fMerge branch 'open-webui:main' into maineda4d98added malaysian language86d2b39added malaysian languaged568863Merge branch 'main' of https://github.com/amirsubhi/open-webui5517d23Merge branch 'open-webui:main' into main4b925dfadded Bahasa Malaysia languagef5922f5Merge branch 'main' of https://github.com/amirsubhi/open-webui📊 Changes
57 files changed (+2003 additions, -95 deletions)
View changed files
📝
backend/apps/rag/main.py(+18 -0)📝
backend/config.py(+12 -0)📝
backend/requirements.txt(+5 -5)📝
package-lock.json(+4 -3)📝
package.json(+1 -0)📝
src/lib/apis/rag/index.ts(+2 -0)📝
src/lib/components/admin/Settings/Documents.svelte(+37 -0)📝
src/lib/components/chat/Controls/Controls.svelte(+1 -0)📝
src/lib/components/chat/MessageInput.svelte(+145 -66)📝
src/lib/components/chat/Messages/CitationsModal.svelte(+10 -3)📝
src/lib/components/chat/Messages/UserMessage.svelte(+1 -1)📝
src/lib/components/common/FileItem.svelte(+17 -2)📝
src/lib/components/workspace/Documents.svelte(+26 -8)📝
src/lib/constants.ts(+2 -0)📝
src/lib/i18n/locales/ar-BH/translation.json(+11 -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(+15 -7)📝
src/lib/i18n/locales/ceb-PH/translation.json(+7 -0)📝
src/lib/i18n/locales/de-DE/translation.json(+7 -0)...and 37 more files
📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
1. During the file upload process, initialize the file first, so that the response is faster during the upload process.
https://github.com/user-attachments/assets/3fb18878-1453-4920-8cad-4cbda5cb272c
2. Environment variables
RAG_MAX_FILE_COUNTandRAG_MAX_FILE_SIZEare also set to limit the maximum size and number of files that users can upload per session, while allowing administrators to freely adjust these values.3. 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
Warning
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.