Skip to content

Commit 2f099b5

Browse files
authored
webui : bump max upload file size to 500MB (#13779)
1 parent aa50ba4 commit 2f099b5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tools/server/public/index.html.gz

2 Bytes
Binary file not shown.

tools/server/webui/src/components/useChatExtraContext.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ export function useChatExtraContext(): ChatExtraContextApi {
4646
try {
4747
for (const file of files) {
4848
const mimeType = file.type;
49-
if (file.size > 10 * 1024 * 1024) {
50-
toast.error('File is too large. Maximum size is 10MB.');
49+
50+
// this limit is only to prevent accidental uploads of huge files
51+
// it can potentially crashes the browser because we read the file as base64
52+
if (file.size > 500 * 1024 * 1024) {
53+
toast.error('File is too large. Maximum size is 500MB.');
5154
break;
5255
}
5356

0 commit comments

Comments
 (0)