【发布时间】:2018-11-24 08:16:46
【问题描述】:
我已经为php集成了ckfinder 3,上传图片后,在根目录中获取上传图片的目录,而不是在我的项目目录中,但我需要在我的项目目录中,如project/upload/ckfinder/userfiles
我在ckfinder的ckfinder/config.php文件中尝试如下:
$config['backends'][] = array(
'name' => 'default',
'adapter' => 'local',
'baseUrl' => base_url().'upload/ckfinder/userfiles/',
//'root' => '', // Can be used to explicitly set the CKFinder user files directory.
'chmodFiles' => 0777,
'chmodFolders' => 0755,
'filesystemEncoding' => 'UTF-8',
);
但它不起作用
请帮我。提前致谢
【问题讨论】:
-
我认为你应该通过
FCPATH.'upload/ckfinder/userfiles',不确定这个库但处理文件应该使用绝对路径。 -
我也试过
FCPATH@SherifSalah -
检查库本身以查看它存储文件的方式和位置,它使用 url 有点奇怪。
标签: codeigniter ckeditor ckfinder