Since the upload page switched to the shared request helper, every file upload fails with 400 Bad Request: multipart body has no boundary. The browser builds a FormData body, and fetch normally generates the multipart/form-data; boundary=... header itself while it serializes that body.
Logging what prepareRequest hands to the transport for two upload call sites:
| Caller passes | Headers returned by prepareRequest |
|---|
| no headers | { "Content-Type": "application/json" } |
{ "content-type": "multipart/form-data", "X-Trace": "t-1" } | { "Content-Type": "application/json", "content-type": "multipart/form-data", "X-Trace": "t-1" } |
JSON and plain-text requests through the same helper work and must keep working.