如何在FCKeditor中动态更改图像上载路径*

Esp*_*spo 5 c# upload fckeditor

我正在为我的FCKeditor使用ASP.NET二进制文件,并且需要在同一页面上插入两个编辑器.上传的图像/浏览需要转到两个不同的目录,如何从代码隐藏中执行此操作?

我知道上传文件的路径是在config.ascx-file中使用UserFilesPath设置设置的,但我找不到从我的aspx.cs文件中覆盖此值的方法.

此外,我发现(冲突的)文档说明Session["FCKeditor:UserFilesPath"]可以设置,但我不喜欢将usercontrol特定信息放在全局会话变量中.

D.J*_*D.J 1

首先,您需要将用户身份信息分配给 Session["UserInfo"]

然后转到[fckeditor根文件夹]/filemanager/connector/aspx/config.ascx

string Userfolder = Session["UserInfo"].ToString(); // URL path to user files. UserFilesPath = "~/Upload/" + Userfolder;