Hi
I am using the .NET connecter and I wonder if its possible for me to set the UserFilesPath and UserFilesDirectory when loading FCKeditor?
I have tried to use FCKeditor.Config["UserFilesPath/FCKeditor:UserFilesPath/ServerPath"] = "/upload"; but none of them seems to have any effect. Neither does Session["UserFilesPath/FCKeditor:UserFilesPath/ServerPath"] or Viewstate["UserFilesPath/FCKeditor:UserFilesPath/ServerPath"].
The reason for this is that i have one administration site for two different domains.
Admin site:
https://admin.mysite.com (d:\inetpub\admin)
Domains:
http://www.domain1.com (d:\inetpub\site1)
http://www.domain2.com (d:\inetpub\site2)
Under each domain there is a /upload/ directory where all uploaded files are stored.
Wed, 08/31/2005 - 01:26
#1
RE: UserFilesPath and UserFilesDirectory
Hello!
)
I had same question and i look into source code for .net connector. Logic is very simple. Code gets path (UserFilesPath) in this order:
1. Is it defined in Application variable Application["FCKeditor:UserFilesPath"]
2. Is it defined in Session variable Session["FCKeditor:UserFilesPath"]
3. Is it in web.config System.Configuration.ConfigurationSettings.AppSettings["FCKeditor:UserFilesPath"] ;
4. Is it in url link specified in config.js .....&ServerPath=xxxxx -> Request.QueryString["ServerPath"] ;
5. If none of this is defined then use defaultpatht constant /UserFiles/.
So if you want to define path for each user then you should define for example:
Session["FCKeditor:UserFilesPath"]="/xxx/" + userid;
I hope this will help anyone, because Fckeditor rules
Gregius