Home:ALL Converter>NestJS multipart/form-data as Get Response

NestJS multipart/form-data as Get Response

Ask Time:2022-11-29T00:14:15         Author:Jaykob

Json Formatter

I'm relatively new to NestJS development and I'm trying to return a multipart response consisting of a file and some JSON text. The file itself wasn't a problem using StreamableFile. However I'm having a hard time finding some info on how to create a multipart response. I only find guides on how to do it the other way (uploading). I tried FormData and got something back with Swagger, but either the file is way too small or some other weird stuff happens.

Anybody here with an example that could help me?

Author:Jaykob,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/74603477/nestjs-multipart-form-data-as-get-response
yy