FastAPI - File Handling
Given this FastAPI code snippet, what will be the output when a file is uploaded?
from fastapi import FastAPI, UploadFile
app = FastAPI()
@app.post('/upload')
async def upload(file: UploadFile):
content = await file.read()
return {'filename': file.filename, 'size': len(content)}