Summary

  • RFC 1867 and RFC 2388 described several files from one form field as a nested multipart/mixed body tucked inside multipart/form-data.
  • RFC 7578 later confessed that no sending implementations of that nesting were known, replaced it for senders with one top-level part per file, and kept receiver support for the old shape as a compatibility courtesy.

A file picker needed a wire format

Before browsers could ship a local file to a server through a plain HTML form, servers often needed a bespoke client to do the lifting. RFC 1867, an Experimental proposal from 1995, sketched the missing piece: an INPUT TYPE=FILE control plus a MIME representation that could carry ordinary fields and raw file bytes in the same submission. It came with a caveat the size of a barn door — Experimental, not a finished Internet Standard — and a compatibility plan that still imagined user agents incapable of the new upload at all.

One selected file was easy: one part. Several files for a single field was where the drawing got ambitious. RFC 1867 nested a second multipart body inside the first — the outer multipart/form-data named the form field, the inner multipart/mixed carried the files. On paper, every level had a job. On the wire, it turned out, almost nobody took the job.

RFC 2388, published as Standards Track in 1998, lifted the media type out of HTML and HTTP so a spreadsheet or any other application could use it too. But when it came to a field holding a set of files, it faithfully preserved the nested multipart/mixed arrangement. A 1995 example had hardened into a 1998 prescription.

The diagram said one thing; the wire said another

RFC 7578, which retired RFC 2388 in 2015, records the discrepancy with a candor rare in standards prose. The nested method, it says, was deprecated for creators and never required of receivers — because there were no known implementations of senders. To match what software actually did, the new rule hands each file its own top-level form-data part, and parts belonging to one control simply repeat the same name parameter.

That is a change in where the grouping lives. Under the old design, one named part held a nested list of files. Under the replacement, the outer sequence holds several parts wearing the same field name. The revision never claimed nested MIME had become syntactically impossible; it kept a recommendation that broadly useful receivers accept the old form. The sender rule moved; the receiver's compatibility duty stayed put.

The authors' phrase “no known implementations” is evidence of what RFC 7578's revision could find — not a census proving no sender ever emitted the old structure. It names no vendor, no browser share, no first-use date, no failure rate. What it does establish is sharper: a standards document rewrote a data shape because its successors could not point to a single sender for the shape the previous RFC had described.

A standard also had to say what a sequence meant

The revision quietly repaired a second ambiguity. RFC 2388 left the relationship between form order and returned-part order unspecified and never said what should happen when field names repeated. RFC 7578 lays down the law: a processor should preserve an ordering when the form defines one, intermediaries must not reorder the results, and parts with identical names must not be coalesced. Those instructions turn repeated names into usable repeated values instead of an accidental collision.

It is tempting to file the whole change under “MIME nesting gives way to flat data.” Too broad. MIME still supplies the part structure, and plenty of forms have no natural order at all. The correction was narrower and more interesting: a multi-file control is represented by multiple peer parts, and the shared field name carries their association. The enclosing request, the form's intended order, each part's bytes, and the receiving application's interpretation stay stubbornly distinct.

Running code as evidence, not slogan

Lu Heng's essay on running-code primacy argues that Internet coordination should take implemented behavior seriously rather than treating text alone as reality. RFC 2388 is a modest, unusually legible case study. RFC 7578 did not preserve every earlier recommendation for its own sake; its authors bent the multi-file encoding toward the sender behavior they could actually identify, while leaving a compatibility path for receivers still chewing on old data.

None of which proves implementers always get a protocol right, or that a standard should simply ratify whatever software happens to do. The document offers no account of who changed first, how many systems were involved, or which operational costs forced the issue. What the record does support is a two-sided rulemaking discipline: specify a wire shape, go looking for the actors who actually emit it, and keep a way to read the old shape when deployed data may still contain it.

Sources