From b4dc00ecd4ec9bd918adad22c019d26f77fcb780 Mon Sep 17 00:00:00 2001 From: louis <869322496@qq.com> Date: Thu, 11 Apr 2024 09:05:58 +0800 Subject: [PATCH] feat: file upload limit 50M --- src/common/adapters/fastify.adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/adapters/fastify.adapter.ts b/src/common/adapters/fastify.adapter.ts index a2caadc..25ff8c2 100644 --- a/src/common/adapters/fastify.adapter.ts +++ b/src/common/adapters/fastify.adapter.ts @@ -13,7 +13,7 @@ app.register(FastifyMultipart, { attachFieldsToBody:true, limits: { fields: 10, // Max number of non-file fields - fileSize: 1024 * 1024 * 30, // limit size 6M + fileSize: 1024 * 1024 * 50, // limit size 50M files: 5 // Max number of file fields } });