Parcourir la source

refactor main.ts attachFieldsToBody with keyValues

Dave il y a 1 mois
Parent
commit
96dce80ce0
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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
     },
   });