FastAPI - File Handling
Consider this FastAPI endpoint:
What will be the JSON response if a file named 'photo.jpg' is uploaded?
async def upload(file: UploadFile = File(...)):
return {"name": file.filename}What will be the JSON response if a file named 'photo.jpg' is uploaded?
