解决办法:
打开editor/filemanager/connectors/aspx/config.ascx
修改CheckAuthentication()方法,返回true
private bool CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
//
// return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
//
// ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
// user logs in your system.
return true;
}
刚刚开始研究FCKeditor,这个应该是对上传图片进行用户验证,但是2.6版并没有实现这个方法,但是做了相关的提示。
如果不需要实现,就直接return true;
本文探讨了在使用FCKeditor时遇到的图片上传用户验证问题,特别是针对2.6版本未实现该功能的情况。提供了一个简单的方法来实现基本的验证,确保只有已授权的用户可以上传和列出服务器上的文件。
4381

被折叠的 条评论
为什么被折叠?



