ARTICLE AD BOX
from fastapi import FastAPI, File, UploadFile, HTTPException
from pathlib import Path
from typing import List
@app.post("/uploadfile/")
def create_upload_file(file: List[UploadFile] = File(...)):
I am currently trying to get a list of files using FastAPI, but no matter what I do I don't get an option to browse and upload a file, even though I am using the example code from the FastAPI website, and can only enter a string of random characters.
The code works perfectly when I change it to
def create_upload_file(file: UploadFile]):What am I doing wrong?

