mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 00:09:24 +08:00
The Add Materials dialog sent any file the user picked. A file over the reader's 200 MiB single-file limit then crossed the Next proxy's 210 MiB body cap, was truncated, and the submit button kept spinning with no explanation. Read the limit from /api/reading/supported-formats (already the server's source of truth for the picker), mark an oversized file as soon as it is chosen, and keep submit disabled until it is removed. If the limit cannot be loaded, behaviour is unchanged and the server's own check still applies. Closes #3151