我对CKFInder很新,我收到了错误
出于安全原因,文件浏览器被禁用。请联系您的系统管理员并检查CKFinder配置文件。
我在网站上看了如下:
http://ckeditor.com/forums/Support/file-browser-disabled-for-security-reasons。
http://ckeditor.com/forums/Support/File-browser-disabled
http://ckeditor.com/forums/Support/file-browser-disabled-for-security-reasons。
他们都在config.php文件中提到了一个名为checkAuthentication()
的函数,但是我搜索了所有文件并且无法对函数进行细化。
在论坛上出现相同错误的所有其他人都使用CKFinder 2,我找不到另一个使用v3的错误的人
我确实相信它只是我忽略的小东西。
提前致谢
回归true
为authentication
显然是不安全的。请查看here以查看介绍如何使用此选项的几个示例。
在查看config.php文件后,我看到了一个配置项$config['authentication']
我把它设置为return true
后,我不再得到错误了。但不确定这是解决此事的最安全/最好的方法
转到ckfinder / config.php
找到以下行
$config['authentication'] = function () {
return false;
};
在这里把假变为真。
因为它是关于PHP的,所以没有人对ASP.Net的CKFinder说什么,虽然它几乎与PHP的CKFinder相同,无论如何你使用CKFinder for ASP.Net,你刚刚下载它,你应该查找IsAuthenticated()
方法,在here中提供的示例包,转到App_Code
文件夹然后打开RoleBasedAuthenticator.cs
文件,使其暂时返回true而不是false:
private bool IsAuthenticated(string[] roles)
{
// Should always fail if matcher is empty.
if (_allowedRoleMatcherTemplate == string.Empty)
{
return true;
}
...
转到ckfinder
文件夹,找到config.php文件,转到下面一行,
$config['authentication'] = function () {
return true;
};
并确保它返回true
而不是false
。
希望这对你有所帮助。