Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for read_list_bytes (0.05 sec)

  1. tests/test_request_params/test_file/test_list.py

    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.post("/list-bytes", operation_id="list_bytes")
    async def read_list_bytes(p: Annotated[list[bytes], File()]):
        return {"file_size": [len(file) for file in p]}
    
    
    @app.post("/list-uploadfile", operation_id="list_uploadfile")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top