Hi everyone. I'm upgrading my project from 10.X to 11.X and I'm having some problems regarding the new fastify version. I've used to use the @fastify/multipart to handle form-data submition as follows:
import * as fastifyMultipart from '@fastify/multipart';
...
await app.register(fastifyMultipart, {
addToBody: true,
attachFieldsToBody: true,
throwFileSizeLimit: true,
limits: {
fieldNameSize: 256,
fileSize: 100 * 1024 * 1024,
},
});
But righ now I'm getting the following error when I submit a file trought form-data:
ERROR [ExceptionsHandler] RangeError: Maximum call stack size exceeded
at ValidationPipe.stripProtoKeys (C:\Users\predo\git\gupchat-api\node_modules\@nestjs\common\pipes\validation.pipe.js:165:19)
Does any one know how i can fix that?