feat: add thumbnail generation for uploaded media files in storage handler

This commit is contained in:
retoor 2024-12-03 20:50:16 +00:00
parent d4ede40439
commit cd163a4016

View File

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