コード例 #1
0
ファイル: Image.php プロジェクト: vallevista/etm2.temp
 public function upload()
 {
     if (file_exists($this->tempPath) && getimagesize($this->tempPath) !== false) {
         if (parent::upload()) {
             $this->thumbnail();
             return true;
         }
     }
     return false;
 }
コード例 #2
0
ファイル: EntityImage.php プロジェクト: enpowi/enpowi
 public static function getMaximumFileUploadSize()
 {
     return File::getMaximumFileUploadSize();
 }