I'm using the ASP.NET binary for my FCKeditor, and needs to insert two editors on the same page. The uploaded images/browsing needs to go to two different directories, how do I do this from code-behind?
I know the path for uploaded files are set in the config.ascx
-file with the UserFilesPath
setting, but I can not find a way to override this value from my aspx.cs
file.
Also, I found (conflicting) documentation stating that Session["FCKeditor:UserFilesPath"]
could be set, but I dont like putting usercontrol-specific information in a global session variable.
first you need assign User Identity information into Session["UserInfo"]
then go to [fckeditor root folder]/filemanager/connector/aspx/config.ascx
string Userfolder = Session["UserInfo"].ToString();
// URL path to user files.
UserFilesPath = "~/Upload/" + Userfolder;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With