简体   繁体   中英

KCFinder - upload image to another server

I'm using KCFinder to upload images of my text field and i need save this images in another server. The directory where it is saved id automatcaly generated by de server where de img will be uploaded, but when i try to upload de img, i receive the "unknow error" error. My upload config is:

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

在此输入图像描述

In config.js specify this paramerter:

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

And you have to dublicate ckfinder to another server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM