This commit is contained in:
		
							parent
							
								
									640a42d308
								
							
						
					
					
						commit
						f8ec8afce7
					
				| @ -277,7 +277,7 @@ async def handle_thumbnail(request: web.Request): | ||||
|         return web.Response(status=400, text="Invalid file type.") | ||||
|      | ||||
|      | ||||
|     thumbnail_path = pathlib.Path(request.app.upload_folder).joinpath(".thumbnail").joinpath(safe_path.name) | ||||
|     thumbnail_path = pathlib.Path(request.app.upload_folder).joinpath(".thumbnail").joinpath(pathlib.Path(safe_path).name) | ||||
|     if not thumbnail_path.parent.exists(): | ||||
|         thumbnail_path.parent.mkdir(exist_ok=True,parents=False) | ||||
|                  | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user