1

我在 tinyMCE 上使用 justboil 图像上传插件。我可以上传图像,但该图像而不是上传到目标文件夹“媒体”被上传到 htdocs 文件夹(xampp),这意味着它甚至没有上传到我的根文件夹教程

$config['img_path'] = `C:\xampp\htdocs\tutorials\media`;
$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path'];

我的代码哪里出错了?

4

1 回答 1

0

您需要明确设置上传文件夹(https://github.com/vikdiesel/justboil.me/blob/master/config.php):

$config['img_path'] = '/images/somefolder'; // Relative to domain name
于 2016-01-12T12:25:49.410 回答