Field note
What it does
Define path operation or dependency parameters as UploadFile to receive files from the request; import directly from fastapi.
Capabilities
Available capabilities
Tags
Tags
Ways to use it
Ways to use it
sdk
python / fastapi
Class for receiving uploaded files in FastAPI path operation functions.
Field note
Define path operation or dependency parameters as UploadFile to receive files from the request; import directly from fastapi.
Capabilities
Tags
Ways to use it
python / fastapi
Product features
The content type of the request, from the headers.
The standard Python file object (non-async).
The original file name.
The headers of the request.
Read some bytes from the file.
Move to a position in the file.
The size of the file in bytes.
Write bytes to the file.