Files desk: refuse files over the server's upload cap before sending #157
Loading…
Reference in a new issue
No description provided.
Delete branch "void/files-desk-cut5"
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?
Follow-up
ratatoskr:follow_up:chat-mind-20261114T014146289Z-t0, Files desk cut 5 (the "client refuses a larger file before sending" rule ofdocs/commons-files-desk.md, Option A, upload rules).splitBySize/createShareController: files larger than the server'sm.upload.size(read fromMediaConfig, wired inShareSetthroughmaxBytes) are named in the note (Too large for this server (limit 50 MB): film.mp4) and dropped from the pick before any upload or album root. A pick of only such files sends nothing and creates no root. A file of exactly the cap goes. No stated cap, or a file with no size, refuses nothing.Tests (consumer side, through the controller a person taps Send on): note text, what is sent, what stays picked, the exact-cap edge, an all-refused pick, the room not left busy, no-cap, fractional cap;
ShareSetwiring ofm.upload.size. Mutations checked:>to>=fails the edge test, a dropped cap fails seven.Does not depend on Eureka's remaining answers or Meta's Q-M. Behind
fileZoneShare.enabledlike the rest of sharing.Untested: against a real homeserver (the server's own M_TOO_LARGE refusal still has its sentence for files whose size the client could not read).
🤖 Generated with Claude Code