Answers for "display pdf in html fastapi"

0

display pdf in html fastapi

from fastapi import FastAPI, UploadFile, File


app = FastAPI()


@app.post("/file")
async def upload_file(file: UploadFile = File(...)):
    # Do here your stuff with the file
    return {"filename": file.filename}
Posted by: Guest on October-20-2021

Browse Popular Code Answers by Language