Summary
- RFC 6266, June 2011, Standards Track, takes over the definition and registration of
Content-Dispositionin HTTP because the earlier specification "points out that it is not part of the HTTP/1.1 Standard". - It also clarifies internationalisation by keeping two parameters:
filenameandfilename*, where the starred form uses an encoding that allows characters outside ISO-8859-1. When both appear, recipients "SHOULD pick filename* and ignore filename". - The document's centre of gravity is distrust: "It is essential that recipients treat the specified filename as advisory only", and a recipient "MUST NOT be able to write into any location other than one to which they are specifically entitled".
Naming something that does not exist yet
A response body is bytes. The name is a promise about where those bytes will live: which folder, which filename, whether the browser opens them or asks the user first.
That is a strange kind of header. It does not describe the message, it describes a future action the receiver might take, so it is not a fact to be parsed but advice to be weighed.
Two spellings of one name
The internationalisation problem has the same shape as many others in the record: the old field could not hold the world's characters. The fix was not a bigger field but a second one, filename*, encoded for the full repertoire, with the old one kept as a fallback.
Both may appear in one header, and the rule is that a modern recipient prefers the starred value. A sender can satisfy old software and new in the same field, which is the cheapest way to migrate anything.
Attachment as the default for the unknown
An early section sets the tone: unknown or unhandled disposition types "SHOULD be handled by recipients the same way as 'attachment'". If a browser cannot understand what it was told to do, it should not guess that the file is safe to display inline.
Advisory, and unusually explicit about why
The security section is the part that earns the specification. A filename is a string chosen by whoever sent it, arriving from the network, and used to create a file on the user's disk. Every path separator in it is an opportunity.
Hence the rules: never trust folder information, strip everything but the last path segment, and never allow a write outside the place the recipient is entitled to write. Those sentences exist because the alternative is a download that lands in a directory the user has never opened.
A header about trust, wearing a naming costume
RFC 6266 adds almost nothing to what the web can do. It converts a borrowed MIME header into an HTTP specification and then spends its length explaining that the most useful part of it is the part the receiver should be most suspicious of.
That is a recognisable genre of internet document: the ones that take a convenient field and write down the discipline required to use it without hurting anyone.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






