Oversized and mistyped uploads were rejected only after being written.
Conversation
Turn 1 — User
Someone uploaded a video and it was stored before anything complained.
Turn 2 — Assistant
Validation ran after the write. It now happens on the incoming stream: type is checked from the actual bytes rather than the declared name, and the read is capped so an oversized file is rejected before it is buffered.
The error names the limit and the detected type, since the previous message said only that the upload failed.
Turn 3 — User
What is the cap?
Turn 4 — Assistant
Configurable, defaulting to eight megabytes. The cap is enforced during the read, so an attempt to send more is cut off rather than measured after the fact.
Subjects
- [[Web App]]
- [[Validation]]