KCFinder - 将图像上传到另一台服务器

时间:2016-10-27 11:11:41

标签: php file-upload tinymce-4 kcfinder

我正在使用KCFinder上传文本字段的图像,我需要将此图像保存在另一台服务器中。保存它的目录由de server自动生成,其中de img将被上传,但是当我尝试上传de img时,我收到“unknow error”错误。我的上传配置是:

'uploadURL' => "http://server_ip/api_cms/uploads/kcfinder_".$_COOKIE['hash_UPLOADO2'],
'uploadDir' => "upload",

enter image description here

1 个答案:

答案 0 :(得分:0)

在config.js中指定此参数:

CKFinder.customConfig = function( config )
{
    config.connectorPath = "http://anotherserver/ckfinder/core/connector/php/connector.php";
};

你必须将ckfinder公开给另一台服务器。

相关问题