/** * 上传文件 * @return string */ public function uploadFile() { if($this->checkError() && $this->checkSize() && $this->checkExt() && $this->checkMime() && $this->checkTrueImg() && $this->checkHTTPPost()) { $this->checkUploadPath(); $this->uniName = $this->fileInfo['name'];//图片名字 $this->destination = $this->uploadPath . '/' . $this->uniName; if(@move_uploaded_file($this->fileInfo['tmp_name'], $this->destination)) { $im = $this->destination;
对图片进行等比例缩小
最新推荐文章于 2023-01-11 14:16:00 发布