fix: prefer filename from body over path in mime validation (#23810)

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2025-11-13 21:56:34 +05:30
committed by GitHub
parent 2cefbf8ca3
commit 88e7e21683
3 changed files with 20 additions and 8 deletions

View File

@@ -419,14 +419,16 @@ export interface UploadFile {
size: number;
}
export interface UploadBody {
filename?: string;
[key: string]: unknown;
}
export type UploadRequest = {
auth: AuthDto | null;
fieldName: UploadFieldName;
file: UploadFile;
body: {
filename?: string;
[key: string]: unknown;
};
body: UploadBody;
};
export interface UploadFiles {