gpt4 book ai didi

c# - Fck编辑上传图片

转载 作者:太空宇宙 更新时间:2023-11-03 11:53:48 27 4
gpt4 key购买 nike

我在 FCK 编辑器中遇到图像问题。当我尝试上传图片时,出现连接器禁用错误,并且图片未显示在编辑器页面中。我正在用 visual studio 2008 编程。请帮忙

最佳答案

看看下面的代码:

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

关于c# - Fck编辑上传图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1287529/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com