richardgirges / express-fileupload

Simple express file upload middleware that wraps around busboy
MIT License
1.52k stars 261 forks source link

content-type required to have ; at the end #252

Closed AssisrMatheus closed 3 years ago

AssisrMatheus commented 3 years ago

The current regex at https://github.com/richardgirges/express-fileupload/blob/1216f4f0685caca7f1ece47f52c6119dc956b07d/lib/isEligibleRequest.js#L1 currently requires content-type to have a ; at the end.

This used to not be true before. Is there a reason for that?

AssisrMatheus commented 3 years ago

I realized I should NOT manually set the header 'content-type': 'multipart/form-data' or else the boundary will not be added. And I gues that's why it requires the ;