Skip to main content
A file a client sent, already fetched by the runtime and handed to your handler as bytes.
Definition
Annotate a handler parameter as UploadedFile to receive one. A parameter can also be a list[UploadedFile], and an upload nested in a dict or a dataclass field resolves the same way. Check mime_type before decoding, because a client can upload anything.