From 6ed4598726d723f140bf983becae04c0a959f427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Wed, 11 Sep 2024 15:58:14 +0900 Subject: [PATCH] Automation init...3 --- app/Libraries/MyStorage/Mangboard/FileLibrary.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/Libraries/MyStorage/Mangboard/FileLibrary.php b/app/Libraries/MyStorage/Mangboard/FileLibrary.php index 2b9b8be..daf91a5 100644 --- a/app/Libraries/MyStorage/Mangboard/FileLibrary.php +++ b/app/Libraries/MyStorage/Mangboard/FileLibrary.php @@ -104,16 +104,14 @@ class FileLibrary extends MyStorageLibrary // if ($result) { // //작은이미지 생성후 목적지 Path와 파일명을 다시 file_path에 넣는다. URL이 되기때문에 /로 넣어야함 // $entity->setPath(sprintf( - // "/%s/%s/%s", - // $this->getUploadPath(), + // "%s/%s", // $entity->getPath(), // $image->getDestinationFile() // )); // } else { // //원본이미지 생성후 목적지 Path와 파일명을 다시 file_path에 넣는다. URL이 되기때문에 /로 넣어야함 // $entity->setPath(sprintf( - // "/%s/%s/%s", - // $this->getUploadPath(), + // "%s/%s", // $entity->getPath(), // $entity->getTitle() // )); @@ -124,8 +122,7 @@ class FileLibrary extends MyStorageLibrary //mb_files에서 file_path가 망보드 게시판 파일관리에서 image로 표시되어 file_path+file_name로 설정 //원본이미지 생성후 목적지 Path와 파일명을 다시 file_path에 넣는다. URL이 되기때문에 /로 넣어야함 $entity->setPath(sprintf( - "/%s/%s/%s", - $this->getUploadPath(), + "%s/%s", $entity->getPath(), $entity->getTitle() ));