← Back to release summary

Numeric character reference fallback for file upload characters not representable in form-charset

Category
File APIs
Type
New or changed feature
Status
Enabled by default (Chrome 64)
Intent stage
None

Summary

Change <input type="file"> filename encoding in multipart/form-data uploads in forms with non-Unicode accept-charset to use HTML numeric character references rather than '?' when a filename the user selects contains characters not representable in the target character encoding. This change would align our behavior with the existing behavior of Firefox and Edge. It is hoped that this behavior can eventually achieve cross-browser consensus and standardization.

Standards & signals

Docs: https://github.com/whatwg/html/issues/3223 https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#multipart-form-data https://encoding.spec.whatwg.org/#concept-encoding-process https://tools.ietf.org/html/rfc7578#section-4.2 https://tools.ietf.org/html/rfc5987#section-3.2

View on chromestatus.com