guessExtension() ?? $file->getClientOriginalExtension(); $storedFilename = Str::uuid().'.'.$extension; $path = date('Y/m/d').'/'.$storedFilename; // 환경설정 > 업로드의 최대 가로/세로·품질 적용 (코어 설정이 모든 업로드 경로에 동일 적용) app(ImageResizer::class)->resizeInPlace($file->getRealPath(), $file->getMimeType()); $this->storage->put('images', $path, file_get_contents($file->getRealPath())); $record = $this->repository->create([ 'original_name' => $file->getClientOriginalName(), 'file_path' => "images/{$path}", 'storage_disk' => $this->storage->getDisk(), 'file_size' => $file->getSize(), 'mime_type' => $file->getMimeType(), 'uploaded_by' => $uploadedBy, ]); HookManager::doAction('sirsoft-ckeditor5.image.after_upload', $record); return $record; } }