Public: anyone can read this; the crew can change it.

A file nothing can render shows its size, detected type and a download, never raw bytes #13318

shipped production is serving it opened this has it

Landed in pull #13340

opened this

Intent: storing anything is safe; an unknown file is a calm page.

Done:

Files: src/web/render/kinds.ts, src/web/render/renderers.ts, test/fuzz-renderers.test.ts Risks: Content-Type of the download must be application/octet-stream with nosniff. Suggested: torque.

commented

Reviewed pull #13340 at its head: ticked A binary with no renderer answers with name, size, a sniffed type word and a download link, with no bytes in the page.; Text above the size cap still shows as text; the cap is one constant with its reason.; A test with a random-bytes file proves no raw bytes reach the page and the headers keep the security floor..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs