Skip to content

detectLaravelUpload

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/openapi/multipart.ts

Laravel: $request->file('avatar'), an UploadedFile type hint, or a validation rule that says file/image/mimes. rules is the form-request/validate() rule text when resolved.

Signature

ts
function detectLaravelUpload(handler: string, rules): MultipartBody | undefined

Parameters

NameType
handlerstring
rulesany

Returns: MultipartBody | undefined

Was this page helpful?

Download as PDF