docs(policies): do not blame concatenation for the postprocessing check

The README claimed that the TUS concatenation extension can merge
several smaller uploads into one file. The posix and decomposed drivers
cannot do that: tusd creates the final upload with NewUpload, which
they do not implement, because uploads have to be started with
InitiateUpload via ocdav.

Checking the actual size in postprocessing is still useful as a safety
net, the early check only sees what the client declares.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer committed 2026-11-30 12:35:19 +01:00
1 parent a69677cecf
commit 15ad13be2f
1 file changed
+1 -1
+1 -1
View File
@@ -220,7 +220,7 @@ granted = false if {
Some WebDAV clients stream uploads with chunked transfer encoding, so such a rule rejects their uploads. A PATCH does not need it, the TUS server does not accept more data than the declared `Upload-Length`.
This is only an early check. The TUS concatenation extension can merge several smaller uploads into one file, so the actual file size has to be checked in postprocessing using `input.resource.size`.
This is only an early check based on what the client declares. To check the actual size of the file that was written, use `input.resource.size` in postprocessing.
## Rego Extensions