你打开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 false; return true; }
<appSettings>
<add key="FCKeditor:BasePath" value="~/fckeditor"/>
<add key="FCKeditor:UserFilesPath" value="~/UploadFiles"/>
</appSettings>
这个是要上传的 文件夹名UploadFiles 如果没有上传时会自动创建,不要该
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 false;
return true;
}
config中的路径修改了可是还是会报错
不行的话你删除重新添加,从项目中删除FredCK.FCKeditorV2.dll和文件夹fckeditor,再从项目中重新添加,试试~