ServerConfiguration 对koaBody声明调整
This commit is contained in:
parent
9600a42aa1
commit
241089d0f5
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue