Explorar o código

refactor main.ts

Dave hai 1 mes
pai
achega
b53310f0c1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      apps/box-mgnt-api/src/main.ts

+ 1 - 0
apps/box-mgnt-api/src/main.ts

@@ -27,6 +27,7 @@ async function bootstrap() {
 
   // multipart for file upload (e.g. OSS, S3)
   await fastifyAdapter.register(multipart as any, {
+    attachFieldsToBody: true,
     limits: {
       fileSize: 30 * 1024 * 1024, // 30 MB
     },