Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for read_optional_list_bytes (0.32 sec)

  1. tests/test_request_params/test_file/test_optional_list.py

    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.post("/optional-list-bytes")
    async def read_optional_list_bytes(p: Annotated[Optional[list[bytes]], File()] = None):
        return {"file_size": [len(file) for file in p] if p else None}
    
    
    @app.post("/optional-list-uploadfile")
    async def read_optional_list_uploadfile(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top