首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

CKFinder 加入验证之后,无法上传文件,出现HTTP Error: status code 302. I/O Error: Error #2038. 异常

2012-07-15 
CKFinder 加入验证之后,无法上传文件,出现HTTP Error: status code 302. I/O Error: Error #2038. 错误C#

CKFinder 加入验证之后,无法上传文件,出现HTTP Error: status code 302. I/O Error: Error #2038. 错误

C# code
    public override 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 on your system.        //return true;    }


这是CKFinder自带的验证,我只是把:return (Session["IsAuthorized"] != null && (bool)Session["IsAuthorized"] == true);
的注释去年,并且在登录时,加入了:Session["IsAuthorized"]=true;

但是这样做之后,在CKFinder中进行上传、删除等等操作时,都会报错。
有用过的人吗?麻烦帮看看是什么问题。谢谢!

[解决办法]
没用过 http://www.cnblogs.com/PocketZ/archive/2010/11/12/1875563.html
[解决办法]
目录权限设置有问题么?

热点排行