소스 검색

refactor main.ts

Dave 1 개월 전
부모
커밋
b53310f0c1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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
     },