mscdex / busboy

A streaming parser for HTML form data for node.js
MIT License
2.84k stars 213 forks source link

Access raw field Buffer #323

Open Sethlans opened 1 year ago

Sethlans commented 1 year ago

Hi all, first of all thanks for the awesome library. I would like to know if is it possible in some way to access the raw Buffer for each field instead of only for files.

In my use case, a third-party tool is sending a multipart with different text encoding for each field and we do not know the encoding before parsing a field called charsets.

Ideally, I would read all the fields as Buffer, parse the charsets filed that is always UTF-8, and then with the information parse all the other fields

Thanks