Kind: Function
Source: atloria-monorepo/libs/parser-core/src/openapi/multipart.ts
Express/multer: upload.single('avatar') in a route's middleware position.
Pass ONLY the middleware argument slices — a whole route call would drag an inline handler
body in with it, where an unrelated .any( or .array( would read as an upload.
Signature
tsfunction detectMulterUpload(middleware: string): MultipartBody | undefined
Parameters
| Name | Type |
|---|---|
middleware | string |
Returns: MultipartBody | undefined
Was this page helpful?