Added thumnails.
All checks were successful
RUpload build / Build (push) Successful in 1m10s

This commit is contained in:
retoor 2024-12-03 21:50:32 +01:00
parent d388537fb5
commit 284ef3d263

View File

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