Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to configure ckfinder with ckeditor

I am trying to integrate ckfinder with ckeditor. Everything is OK, except one. when I try to upload the image, I get this error (Please check image)

Unable to configure ckfinder with ckeditor

It says "The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file"

Anyone who can help me? Please.

like image 642
Muaaz Khalid Avatar asked Feb 14 '14 13:02

Muaaz Khalid


1 Answers

Look in the ckFinder config file, you will see a function like this:

function CheckAuthentication()
{

    return false;
}

By default CheckAuthentication() it is disabled for security reason, because it would allow anyone to upload files to your server.

For testing purposes you can return true but the point is that you implement some logic to only authorize autenticated user.

function CheckAuthentication()
{
    //put some logic here

    return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];
}
like image 148
meda Avatar answered Sep 21 '22 17:09

meda