From d388537fb5086a056ca9ba05d21c9ef92cf9d528 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 3 Dec 2024 21:50:16 +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 72b70f6..30d526f 100644 --- a/src/rupload/app.py +++ b/src/rupload/app.py @@ -271,7 +271,7 @@ async def handle_upload(request: web.Request): async def handle_thumbnail(request: web.Request): path = request.match_info["path"] - safe_path = pathlib.Path(request.app.upload_path).joinpath(path) + safe_path = pathlib.Path(path) if not safe_path.exists(): return web.Response(status=404, text="File not found.")