I have an house content management system that we use to maintain our websites, and FCKeditor is a key element of it. What I am currently doing is enhancing our CMS to allow different websites to be maintained. What I need to be able to do is set the "UserFilesPath" to a particular physical directory, based on the website being maintained. I've looked through the source code in the FCKeditor.Net_2.2 source, and I think it calls server.MapPath to get a physical directory based on where the website running FCKeditor is - so the upload directory is within that overall tree.
But, I will have several sites, all with different root directories - say, e:\mysiteone\...., e:\mysitetwo\.... and so on. I have the physical directory for each site in a configuration setting that I could easily set this to, provided it wasn't then mapped to within the structure of the CMS's web site.
Any suggestions? And what do I need to recompile the FCKeditor.Net code?
Thanks in Advance.
Ken
But, I will have several sites, all with different root directories - say, e:\mysiteone\...., e:\mysitetwo\.... and so on. I have the physical directory for each site in a configuration setting that I could easily set this to, provided it wasn't then mapped to within the structure of the CMS's web site.
Any suggestions? And what do I need to recompile the FCKeditor.Net code?
Thanks in Advance.
Ken
RE: File Upload Directory with FCKeditor.Net
public string UserFilesDirectory
{
get
{
if ( sUserFilesDirectory == null )
{
sUserFilesDirectory = (string)Session["FCKeditor:UserDirectoryPath"] ;
if ( sUserFilesDirectory == null )
{
// Get the local (server) directory path translation.
sUserFilesDirectory = Server.MapPath( this.UserFilesPath ) ;
}
else
{
// Append the UserFilesPath to this server path.
sUserFilesDirectory = String.Concat(sUserFilesDirectory, UserFilesPath);
}
}
return sUserFilesDirectory ;
}
}