[thelist] Multipart uploads -- encoding of "filename"

Bill Moseley moseley at hank.org
Sun May 23 22:44:43 CDT 2010


I have an app that handles file uploads using' multipart/form-data' forms.
The upload page is charset utf8 and the <form> has accept-charset utf8.

Every once in a while I get an upload with an invalid filename charset (it
fails utf8 validation with an invalid utf8 sequence).   This seems to happen
on Windows clients -- I assume using a non-utf8 codepage.

I looked through RFC1867 but didn't see any reference to charset.   Should
the client's browser be encoding the "filename" content-disposition into
utf8 when the form has accept-charset="utf8" regardless of how the filename
is encoded on the client's machine?

-- 
Bill Moseley
moseley at hank.org


More information about the thelist mailing list