feat: add thumbnail generation for uploaded media files in storage handler
This commit is contained in:
parent
d4ede40439
commit
cd163a4016
@ -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.")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user