webui : bump max upload file size to 500MB (#13779)
This commit is contained in:
parent
aa50ba462f
commit
2f099b510f
2 changed files with 5 additions and 2 deletions
Binary file not shown.
|
@ -46,8 +46,11 @@ export function useChatExtraContext(): ChatExtraContextApi {
|
||||||
try {
|
try {
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
const mimeType = file.type;
|
const mimeType = file.type;
|
||||||
if (file.size > 10 * 1024 * 1024) {
|
|
||||||
toast.error('File is too large. Maximum size is 10MB.');
|
// this limit is only to prevent accidental uploads of huge files
|
||||||
|
// it can potentially crashes the browser because we read the file as base64
|
||||||
|
if (file.size > 500 * 1024 * 1024) {
|
||||||
|
toast.error('File is too large. Maximum size is 500MB.');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue