我用的是最新版!
找到以下2個關鍵文件:
YourPath.../Ueditor/php/config.json
YourPath.../Ueditor/php/Uploader.class.php
config.json找到如下代碼:
"imagePathFormat": "...(這里不用管)",//找到imagePathFormat所在行
Uploader.class.php找到如下方法:
? ? ? ? ? ?private function getFilePath() {}
//打印你的 ? ?$rootPath =?$_SERVER['DocumentRoot']; print_r($rootPath);
$rootPath.$fullname;//$fullname 就是 config.json中?imagePathFormat 對應的值,然后你結合自己打印得到的$rootPath,組合成自己的圖片上傳路徑。
?