Php TINYMCE-上传带有jbimages插件的图像文件夹的路径';行不通
使用插件jbimages配置tinymce 4.0内上传图像的路径时出现问题 进入我的插件的config.php文件Php TINYMCE-上传带有jbimages插件的图像文件夹的路径';行不通,php,tinymce-4,Php,Tinymce 4,使用插件jbimages配置tinymce 4.0内上传图像的路径时出现问题 进入我的插件的config.php文件 $config['img_path'] = 'test/admin/uploads'; // Relative to domain name $config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; // Physical path. [Usually works fine like
$config['img_path'] = 'test/admin/uploads'; // Relative to domain name
$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; // Physical path. [Usually works fine like this]
不起作用。
正在检查$\u服务器['DOCUMENT\u ROOT']的路径,我有
/web/htdocs/www.example.com/home/
因此,完整路径是:
/web/htdocs/www.example.com/home/test/admin/uploads
我想要的是
http://www.example.com/test/admin/uploads
如果我尝试将其设置为$config['img_path'],作为绝对路径也不起作用
$config['img_path'] = 'http://www.example.com/test/admin/uploads'; // Relative to domain name
$config['upload_path'] = $config['img_path'];
我能做什么??
谢谢请在图像路径中尝试开始斜杠
$config['img_path'] = '/test/admin/uploads'; // Relative to domain name