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.")