コード例 #1
0
ファイル: File.php プロジェクト: SerdarSanri/admin
 /**
  * This static function is used to perform the actual upload and resizing using the Multup class
  *
  * @return array
  */
 public function doUpload()
 {
     $mimes = $this->mimes ? '|mimes:' . $this->mimes : '';
     //use the multup library to perform the upload
     $result = Multup::open('file', 'max:' . $this->sizeLimit * 1000 . $mimes, $this->location, $this->naming)->set_length($this->length)->upload();
     return $result[0];
 }
コード例 #2
0
ファイル: Image.php プロジェクト: SerdarSanri/admin
 /**
  * This static function is used to perform the actual upload and resizing using the Multup class
  *
  * @return array
  */
 public function doUpload()
 {
     //use the multup library to perform the upload
     $result = Multup::open('file', 'image|max:' . $this->sizeLimit * 1000 . '|mimes:jpg,gif,png', $this->location, $this->naming)->sizes($this->sizes)->set_length($this->length)->upload();
     return $result[0];
 }
コード例 #3
0
ファイル: Image.php プロジェクト: TahsinGokalp/L3-Sozluk
 /**
  * This static function is used to perform the actual upload and resizing using the Multup class
  *
  * @return array
  */
 public function doUpload()
 {
     //use the multup library to perform the upload
     $result = \Admin\Libraries\Includes\Multup::open('file', 'image|max:' . $this->sizeLimit * 1000 . '|mimes:jpg,gif,png', $this->location, true)->sizes($this->sizes)->upload();
     return $result[0];
 }