feat(files): document CLI uploads
ci / check (push) Successful in 1m7s

Document Bearer-authenticated multipart uploads with curl and Wget2. Return 413 for oversized multipart bodies and report attachment size limits accurately.
This commit is contained in:
lgcosta committed 2026-11-06 08:35:19 -03:00
1 parent 12631ecd09
commit 61018a90b5
5 files changed
+149 -6

No files matched your search

+5 -1
View File
@@ -292,7 +292,11 @@ func mapStoreErrorFor(w http.ResponseWriter, err error, resource string) {
case errors.Is(err, store.ErrInvalid):
writeError(w, http.StatusBadRequest, err.Error())
case errors.Is(err, store.ErrTooLarge):
writeError(w, http.StatusRequestEntityTooLarge, "conteúdo excede 2 MiB")
if resource == "arquivo" {
writeError(w, http.StatusRequestEntityTooLarge, "arquivo excede 64 MiB ou a quota total de anexos excede 2 GiB")
} else {
writeError(w, http.StatusRequestEntityTooLarge, "conteúdo excede 2 MiB")
}
case errors.Is(err, store.ErrUnchanged):
writeError(w, http.StatusConflict, "o conteúdo dessa revisão já está ativo")
default: