fix: raise Files group upload cap 20 MiB -> 2 GiB (api + web)

The Files tab dropzone still enforced the old 20 MiB cap client- and
server-side while every other path had moved to 2 GiB. Also corrects the
stale '100 MiB' message on the video upload rejection.
This commit is contained in:
glass beadian 2026-10-15 20:49:46 +00:00
parent ef8d28bc26
commit 613aba236b
4 changed files with 11 additions and 10 deletions

View file

@ -453,7 +453,7 @@ function validateUpload(storageKey: string, mimeType: string, sizeBytes: number)
if (!Number.isSafeInteger(sizeBytes) || sizeBytes < 1) {
throw new BadRequestException("sizeBytes must be a positive safe integer");
}
if (sizeBytes > MAX_VIDEO_UPLOAD_BYTES) throw new BadRequestException("video exceeds the 100 MiB upload limit");
if (sizeBytes > MAX_VIDEO_UPLOAD_BYTES) throw new BadRequestException("video exceeds the 2 GiB upload limit");
}
function requiredRow(row: unknown, description: string): Record<string, unknown> {