在“上传图片”的时候,或者“浏览服务器”时出现,大概意思是禁止上传,还有查看服务器上的文件,出现如下提示:
出现上图错误是没有打开fckeditor的图片上传权限,找到文件config.ascx
就在文件config.ascx中,有如下一个方法。
1 private bool CheckAuthentication()
2 {
3 // WARNING : DO NOT simply return "true". By doing so, you are allowing
4 // "anyone" to upload and list the files in your server. You must implement
5 // some kind of session validation here. Even something very simple as...
6 //
7 // return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
8 //
9 // ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
10 // user logs in your system.
11 return false;
12 }
这如果返回了false,就会出现上面的提示,也就不能上传文件或者图片。如果你不想限制,那么就直接返回true,当然不建议这么做,你至少得是登录用户才能有这种上传权限,当然这取决于具体情况,总之,你不能在这儿总是返回false。
浙公网安备 33010602011771号