Ckfinder3.3.0解决The file browser is disabled for security reasons. 错误提示
错误提示:
The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.
帮助文档里提示:
By default, the CKFinder server connector is disabled. If you open the default CKFinder sample (located in /ckfinder/samples/full-page-open.html
) you will see the following error message:
The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.
In order to enable it, you should set the authentication function in config.php
so that it returned true
for users that should have access to CKFinder.
解决办法:默认情况下Ckfinder是禁止上传的,要去ckfinder/config.php 中加入开启上传权限代码:
$config['authentication'] = function() {
return true;
};
如图: