最新版的cuteeditor可以从控件初始化时定义上传目录
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostback)
{
string LocalPath=Server.MapPath("../Uploads/"+ Session["userid"]); //判断文件夹是否存在的过程省略
this.Editor1.SetSecurityFilesGallerPath(LocalPath);
this.Editor1.SetSecurityFlashGallerPath(LocalPath);
......
}
}