diff --git a/app/Libraries/MyMangboard/Storage.php b/app/Libraries/MyMangboard/Storage.php index 69c08c5..74d5c17 100644 --- a/app/Libraries/MyMangboard/Storage.php +++ b/app/Libraries/MyMangboard/Storage.php @@ -120,7 +120,9 @@ class Storage extends FileStorage private function create_small_image(BoardEntity $board_entity, $target_name = "small", int $width = 480, int $height = 319): void { - $fileInfo = pathinfo($this->getFullPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL); + $fileInfo = pathinfo($this->getFullPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL); + var_dump($fileInfo); + exit; $target_file_name = sprintf("%s_%s.%s", $fileInfo['filename'], $target_name, $fileInfo['extension']); if (!$this->isFileType_FileTrait($fileInfo['extension'])) { throw new \Exception("{$this->getOriginName()} Image 형식파일이 아닙니다."); @@ -150,6 +152,6 @@ class Storage extends FileStorage //File DB에 넣기 $this->create_file($boards_entity, $board_entity, $board_table); //작은이미지 만들기 - $this->create_small_image($board_entity, $this); + $this->create_small_image($board_entity); } }