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

This commit is contained in:
retoor 2024-12-03 22:02:53 +01:00
parent ee42c6b874
commit 850a922863

View File

@ -277,7 +277,7 @@ async def handle_thumbnail(request: web.Request):
return web.Response(status=400, text="Invalid file type.") 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(): if not thumbnail_path.parent.exists():
thumbnail_path.parent.mkdir(exist_ok=True,parents=False) thumbnail_path.parent.mkdir(exist_ok=True,parents=False)