multer
multer copied to clipboard
Pass the defCharset down to Busboy
Hi. This PR is to enable defCharset option in busboy init step,
and handle multipart/form-data which contains non-utf8 encoding fields
(related to issue #320 , similar with PR #450 )
Purpose:
I would like to handle multipart/form-data which contains various encoding fields.
Now busboy decode field text is utf8 when the field doesn't have charset.
To handle unknown encoding text in later process, it has to be encoded as 'binary'
so we need to pass defCharset: 'binary' to busboy.