我正在为 tinymce 编辑器使用一个名为 justboil.com 的图像上传器插件。
它字很好,并上传图像以显示它们,但我希望它能够将完整的 Web URL 添加到图像的路径中,例如:
* http://www.domain.com/upload_img/img1.jpg *
而不是
*/upload_img/img1.jpg*
这是插件的配置代码
| -------------------------------------------------------------------
|
| Path to upload target folder, relative to domain name. NO TRAILING SLASH!
| Example: if an image is acessed via http://www.example.com/images/somefolder/image.jpg, you should specify here:
|
| $config['img_path'] = '/images/somefolder';
|
| -------------------------------------------------------------------*/
$config['img_path'] = '/upload_img'; // Relative to domain name
$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; // Physical path. [Usually works fine like this]
我已尝试将其更改$_SERVER['DOCUMENT_ROOT']
为完整的域名,但如果我这样做,它不会上传图片
有任何想法吗?