▲ 2 r/learnpython
How to upload multiple image in FastAPI swagger UI?
I'm using this as my function annotation
@router.post("/")
async def create_story(images: list[UploadFile]): ...
but the swagger UI show a list of string not images with no choose file button
It works fine when I switch the list[UploadFile] to UploadFile and shows the Choose file button
u/bahmed5 — 1 day ago