[GH-ISSUE #635] File input limit should be configurable from default 512KB for chat window #262

Open
opened 2026-10-29 21:23:28 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @uris-code1 on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/635

Input file limit is hardcoded as 512KB:
const MAX_TEXT_FILE = 512 * 1024;

.
.
if (f.size > MAX_TEXT_FILE) {
toast("warn", "File too large", ${f.name} is over 512 KB.);
continue;
}

One can change is higher to 100MB, that is DS4.1 Flash limit also:
const MAX_TEXT_FILE = 100 * 1024 * 1024;

Not sure if bigger file limit will break something but was able to load 672KB json file after above change, 13MB file seems to stall the system

Originally created by @uris-code1 on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/635 Input file limit is hardcoded as 512KB: const MAX_TEXT_FILE = 512 * 1024; . . if (f.size > MAX_TEXT_FILE) { toast("warn", "File too large", `${f.name} is over 512 KB.`); continue; } One can change is higher to 100MB, that is DS4.1 Flash limit also: const MAX_TEXT_FILE = 100 * 1024 * 1024; Not sure if bigger file limit will break something but was able to load 672KB json file after above change, 13MB file seems to stall the system
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mw00/project-maya#262
No description provided.