diff --git a/src/rupload/app.py b/src/rupload/app.py index 30d526f..2b37b5b 100644 --- a/src/rupload/app.py +++ b/src/rupload/app.py @@ -273,9 +273,6 @@ async def handle_thumbnail(request: web.Request): safe_path = pathlib.Path(path) - if not safe_path.exists(): - return web.Response(status=404, text="File not found.") - if not safe_path.is_file(): return web.Response(status=400, text="Invalid file type.")