diff --git a/fastapi/datastructures.py b/fastapi/datastructures.py index d7c49f1b7..b6ff24044 100644 --- a/fastapi/datastructures.py +++ b/fastapi/datastructures.py @@ -136,7 +136,7 @@ class UploadFile(StarletteUploadFile): To be awaitable, compatible with async, this is run in threadpool. """ return await super().close() - + async def read_text( self, encoding: Annotated[