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
117 stars 23 forks source link

Does not work froperly with files like .xlsx or images (extra bytes are present in buffer) #13

Closed yuriygavriluk closed 2 years ago

yuriygavriluk commented 2 years ago

Upload excel file and save it to disk or log request @Module({ imports: [NestjsFormDataModule.config({ storage: FileSystemStoredFile, fileSystemStoragePath: 'nestjs-fd' })], providers: [ ], exports: [NestjsFormDataModule], })

run request thewre excal or image is form data and log request

Problem if you go to 'nestjs-fd' folder the file will be corrupted if you check log file size is bigger then actual files that was sent and extra bytes are present

yuriygavriluk commented 2 years ago

Yes I think this is only related to AWS Api gateway so not a topic for this library Ticket can be closed

dmitriy-nz commented 2 years ago

It's good that the problem was found