from fastapi import FastAPI import sys import os import requests from fastapi import FastAPI,Form, Request,UploadFile app = FastAPI() @app.post("/postform1") def postform1(username: str = Form(...)): print (username) return username @app.get("/") async def root(): return {"message": "test"}