Bernardo Kowacic
Bernardo Kowacic

Reputation: 228

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",

enter image description here

Upvotes: 0

Views: 697

Answers (1)

Darkhan ZD
Darkhan ZD

Reputation: 610

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.

Upvotes: 0

Related Questions