Automation init...3

This commit is contained in:
최준흠 2024-09-17 20:43:37 +09:00
parent ae43863d20
commit 2db7e13fdb

View File

@ -59,13 +59,13 @@ class FileStorage extends MyStorage
switch (getenv("mangboard.uploads.file.collision")) { switch (getenv("mangboard.uploads.file.collision")) {
case "unique": case "unique":
$file_name = $this->getUniqueName_FileTrait($this->getFullPath(), $this->getOriginName()); $file_name = $this->getUniqueName_FileTrait($this->getFullPath(), $this->getOriginName());
log_message("notice", __FUNCTION__ . "파일명 변경 : 원본파일 {$this->getOriginName()}->저장파일 {$file_name}"); log_message("notice", __FUNCTION__ . " 파일명 변경 : 원본파일 {$this->getOriginName()}->저장파일 {$file_name}");
$this->setOriginName($file_name); $this->setOriginName($file_name);
$save_file = $this->getFullPath() . DIRECTORY_SEPARATOR . $this->getOriginName(); $save_file = $this->getFullPath() . DIRECTORY_SEPARATOR . $this->getOriginName();
break; break;
case "notallow": case "notallow":
default: default:
throw new \Exception(__FUNCTION__ . "{$this->getOriginName()}는 이미 존재하는 파일입니다."); throw new \Exception(__FUNCTION__ . " {$this->getOriginName()} 는 이미 존재하는 파일입니다.");
// break; // break;
} }
} }