浏览代码

refactor main.ts attachFieldsToBody with keyValues

Dave 1 月之前
父节点
当前提交
96dce80ce0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      apps/box-mgnt-api/src/main.ts

+ 2 - 2
apps/box-mgnt-api/src/main.ts

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