From 9f20c461e424fb3d2a6dbd21003f216c46fb3b89 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 26 Nov 2024 07:59:09 +0100 Subject: [PATCH] Done. --- src/rupload/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rupload/app.py b/src/rupload/app.py index c10b7e9..dbff64e 100644 --- a/src/rupload/app.py +++ b/src/rupload/app.py @@ -34,7 +34,7 @@ UPLOAD_PAGE = """ RUpload 1.33.7 @@ -193,7 +194,7 @@ def create_images_html(url, image_paths): images_html = "" for image_path in image_paths: path = url.rstrip("/") + "/" + image_path.name - images_html += f'{image_path.name}\n' + images_html += f'{image_path.name}\n' return images_html @@ -303,6 +304,7 @@ def create_app( web.get("/", handle_index), web.post("/upload", handle_upload), web.static("/", upload_path), + web.static("/uploads", upload_path), ] ) return app