ServerConfiguration 对koaBody声明调整

This commit is contained in:
wkj 2024-12-04 12:27:13 +08:00
parent 9600a42aa1
commit 241089d0f5
2 changed files with 20 additions and 2 deletions

View File

@ -35,7 +35,16 @@ export type ServerConfiguration = {
};
internalExceptionMask?: string;
koaBody?: {
maxFileSize?: number;
multipart?: boolean;
formidable?: {
maxFileSize?: number;
maxFields?: number;
maxFieldsSize?: number;
uploadDir?: string;
keepExtensions?: boolean;
hashAlgorithm?: string;
multiples?: boolean;
};
};
};
/**

View File

@ -37,7 +37,16 @@ export type ServerConfiguration = {
},
internalExceptionMask?: string;
koaBody?: {
maxFileSize?: number;
multipart?: boolean; //框架默认开启 用于处理multipart/form-data类型的请求这种类型通常用于上传文件。
formidable?: {
maxFileSize?: number;
maxFields?: number;
maxFieldsSize?: number;
uploadDir?: string;
keepExtensions?: boolean;
hashAlgorithm?: string;
multiples?: boolean;
}
};
};