在Ueditor文件夹下有个php文件夹,修改Uploader.class.php
引入七牛文件(具体文件参照我之前的博客)
require_once "../../../../../app/Functions/qiniu.php";
然后增加一个方法
private function uploadQiniu(){
uptoQiniuDouble($this->filePath,$this->fileName);
}
最后引用一下
public function getFileInfo()
{
$this->uploadQiniu();
return array(
"state" => $this->stateInfo,
// "url" => $this->fullName,
"url" => '你的七牛地址/'.$this->fileName,
"title" => $this->fileName,
"original" => $this->oriName,
"type" => $this->fileType,
"size" => $this->fileSize
);
}