multer icon indicating copy to clipboard operation
multer copied to clipboard

originalfilename error code when originalfilename contain chinese

Open realmxu opened this issue 2 years ago • 2 comments

w�1990.jpeg

realmxu avatar Mar 30 '22 03:03 realmxu

{ fieldname: 'file', originalname: 'w�1990.jpeg', encoding: '7bit', mimetype: 'image/jpeg', destination: './upload', filename: 'd93f5b48-e576-4f76-97e3-bd41bc3f7ef0.jpeg', path: 'upload\d93f5b48-e576-4f76-97e3-bd41bc3f7ef0.jpeg', size: 189400 }

realmxu avatar Mar 30 '22 07:03 realmxu

{ fieldname: 'media', originalname: 'Tt �� 2022-05-22 130102.jpg', encoding: '7bit', mimetype: 'image/jpeg', buffer: <Buffer ff d8 ff e0 00 10 4a 46 49 46 00 01 01 01 00 60 00 60 00 00 ff db 00 43 00 03 02 02 03 02 02 03 03 03 03 04 03 03 04 05 08 05 05 04 04 05 0a 07 07 06 ... 810242 more bytes>, size: 810292 },

I also have the same problem

dotoritos-kim avatar May 30 '22 17:05 dotoritos-kim