【问题标题】:Fck Editor upload imagesFck Editor 上传图片
【发布时间】:2010-11-20 05:26:46
【问题描述】:

我在 FCK 编辑器中遇到图像问题。当我尝试上传图像时,它给了我连接器禁用错误,并且图像未显示在编辑器页面中。我正在使用 Visual Studio 2008 进行编程。请帮助

【问题讨论】:

    标签: c# image upload fckeditor


    【解决方案1】:

    看看下面的代码:

    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.
            MembershipUser m = Membership.GetUser();
            if (m != null)
            {
                return true;
            } else {
                return false;
            }
            //return false;
        }
    

    然后更新 App 和 Root 文件。

    【讨论】:

      猜你喜欢
      • 2018-07-11
      • 1970-01-01
      • 2021-09-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-26
      • 2021-03-19
      相关资源
      最近更新 更多