From 850a9228632e3ac11274cf42c7e80f3407442d8b Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 3 Dec 2024 22:02:53 +0100 Subject: [PATCH] Added thumnails. --- src/rupload/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rupload/app.py b/src/rupload/app.py index 6f11a49..c951fa3 100644 --- a/src/rupload/app.py +++ b/src/rupload/app.py @@ -277,7 +277,7 @@ async def handle_thumbnail(request: web.Request): return web.Response(status=400, text="Invalid file type.") - thumbnail_path = pathlib.Path(request.app.upload_folder).joinpath(".thumbnail").joinpath(pathlib.Path(safe_path).name) + thumbnail_path = pathlib.Path(request.app.upload_path).joinpath(".thumbnail").joinpath(pathlib.Path(safe_path).name) if not thumbnail_path.parent.exists(): thumbnail_path.parent.mkdir(exist_ok=True,parents=False)