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)
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.
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'];
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With