FastAPI - File Handling
Given this FastAPI endpoint, what will be the output if two files named 'file1.txt' and 'file2.txt' are uploaded?
from fastapi import FastAPI, UploadFile, File
from typing import List
app = FastAPI()
@app.post('/upload')
async def upload(files: List[UploadFile] = File(...)):
return {'filenames': [file.filename for file in files]}