feat: file upload limit 50M

This commit is contained in:
louis 2024-04-11 09:05:58 +08:00
parent 563c08c233
commit b4dc00ecd4
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ app.register(FastifyMultipart, {
attachFieldsToBody:true, attachFieldsToBody:true,
limits: { limits: {
fields: 10, // Max number of non-file fields 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 files: 5 // Max number of file fields
} }
}); });