From 93cb11d7bb8415ab7003a74c23a81f549dc724c0 Mon Sep 17 00:00:00 2001 From: Kolja Prothmann Date: Fri, 27 Feb 2026 21:10:41 +0100 Subject: [PATCH] added static upload webpage. not yet connected to main.py --- README.md | 2 +- main.py | 3 +++ static/upload.html | 67 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 static/upload.html diff --git a/README.md b/README.md index e58aef8..11fb838 100644 --- a/README.md +++ b/README.md @@ -15,5 +15,5 @@ uvicorn main:app --host 0.0.0.0 --port 8001 --reload mit folgender URL im Browser ist der Einstiegpunkt: -http://127.0.0.1:8001/ +http://127.0.0.1:8001/static/upload.html diff --git a/main.py b/main.py index 01e49df..f915f6e 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,10 @@ from fastapi import FastAPI +from fastapi.staticfiles import StaticFiles + app = FastAPI() +app.mount("/static", StaticFiles(directory="static"), name="static") @app.get("/") def read_root(): diff --git a/static/upload.html b/static/upload.html new file mode 100644 index 0000000..a97cab0 --- /dev/null +++ b/static/upload.html @@ -0,0 +1,67 @@ + + + + + + Datei Upload + + + +

Datei Upload

+ +
+ + +

+

+  
+ + + + +