/** * 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]; }
/** * 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]; }
/** * 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]; }