dmitriy-nz / nestjs-form-data

NestJS middleware for handling multipart/form-data, which is primarily used for uploading files.
https://www.npmjs.com/package/nestjs-form-data
MIT License
125 stars 25 forks source link

fix: :bug: fix filename bug #4

Closed CorneilleEdi closed 3 years ago

CorneilleEdi commented 3 years ago

originalName is supposed to give the original name of the file but it is not working. The file name is retrieved with the filename key. This commit removes any occurrence of filename and makes the name of the file available by calling originalName