dever 5 년 전
부모
커밋
c0bcf1ca87
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      lib/Store/Core.php

+ 3 - 0
lib/Store/Core.php

@@ -429,6 +429,9 @@ class Core
 	protected function ext()
 	{
 		$this->ext  = $this->ext ? $this->ext : '.' . pathinfo($this->data['file']['name'], PATHINFO_EXTENSION);
+		if ($this->ext == '.') {
+			$this->ext = '.jpg';
+		}
 
 		return $this;
 	}