docs(uploads): the last three places describing the html refusal

api-reference limits the refused example to scripts and says html/htm are
admitted and inert, leaving svg as the markup type kept out.
architecture-invariants lists html/htm in the text family and drops html from
the scope exclusion, as CLAUDE.md does. The wiki says the File Viewer shows an
uploaded page's source, which is what a click on its path does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludo FourrageandClaude Opus 5.5 committed 2026-12-02 13:28:58 -08:00
1 parent 85c0f35972
commit 5374d020d7
3 files changed
+7 -5

No files matched your search

+5 -3
View File
@@ -899,11 +899,13 @@ saying the file is not UTF-8 text, or UTF-16 text when it opens with a UTF-16
byte order mark, and to save it as UTF-8), and it is saved under
a sanitized stem of its name, so `Q3 report.pdf` is findable as
`paste-<ms>-<hex>-Q3-report.pdf`. A named type that is neither an image nor a
document (a script, an HTML page, a `.sh`) is refused 400 `Unsupported file
document (a script: `.sh`, `.py`, `.js`) is refused 400 `Unsupported file
type`. That refusal is a scope choice, not a security property: `file-raw`
already serves non-media text inert (`text/plain`, `nosniff`), so this just
keeps the server from storing what it would serve or an agent could run, and
html and svg are the ones deliberately kept out.
keeps the server from storing what an agent could run. `.html` and `.htm` are
admitted and stay inert: `file-raw` serves them as `application/octet-stream`
with `nosniff`, and `html-view` refuses a page under a dot-directory such as
`.codeman-uploads`. That leaves svg as the markup type still kept out.
## Listing a directory (`GET /api/v1/sessions/:id/files?lazy=1`)