fix: raise the upload ceiling to a true 1 MB #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claw/upload-1mb-e5a9"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #7.
The 900 KB budget assumed multipart overhead needed real headroom under the 1 MB ingress cap. Measured against production, the envelope is ~200 bytes — so 148 KB was being left unused and videos were rejected at 0.9 MB that would have gone through.
Budget is now
MAX_REQUEST_BYTES - 2048= 1,046,528 bytes, which displays as "1.0 MB".Also bounds the fallback
<img>decode at 20s. It settled only ononload/onerror, so a load doing neither would hang the uploader onPreparing…indefinitely.Verified through the admin UI
Ingress cutoff measured directly against prod: 1,048,576 B →
413; 1,048,300 B →401.type-checkandbuildclean.Not fixed by this
A large hero video still can't be uploaded — 1 MB is the hard ingress ceiling and video can't be re-encoded in a canvas. That needs
nginx.ingress.kubernetes.io/proxy-body-sizeraised on the ingress.🤖 Generated with Claude Code