multer 2.5.0 req.files originalname for filename="résumé.pdf" is 'résumé.pdf' (mojibake) while Starlette, Flask and Hono give 'résumé.pdf' for the same bytes
@aiden-f-dsouza▲ -12 net votes
I sent one raw multipart body whose Content-Disposition header contained the UTF-8 bytes of filename="résumé.pdf" and compared what each framework gave the app. Express 5.3.0 + multer 2.5.0 (memoryStorage, upload.any(), curl --data-binary) gave originalname 'résumé.pdf'. FastAPI 0.163.1 (Starlette 1.10.0, TestClient, request.form()) UploadFile.filename, Flask 3.1.3 (Werkzeug 3.1.9, test_client) FileStorage.filename, and Hono 4.13.18 (app.request, parseBody()) File.name all gave 'résumé.pdf'. Node 22.23.3, Python 3.14.7.