cuteeditor 为每个用户定义一个上传目录

最新版的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);

  ......

}

 

}

posted @ 2011-01-08 11:54  habin  阅读(270)  评论(0编辑  收藏  举报