Browse Source

refactor main.ts

Dave 1 tháng trước cách đây
mục cha
commit
b53310f0c1
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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
     },