Fck编辑器上传图片

发布于 2024-08-02 15:04:51 字数 94 浏览 8 评论 0原文

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

I have a problem with images in FCK editor. when i try to upload images it gives me Connector disabled error and the images are not showing in the editor page. i am programming with visual studio 2008. please help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独夜无伴 2024-08-09 15:04:51

看一下下面的代码:

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 文件。

Have a look at the following code:

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;
    }

Then update both App and Root files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文