FCKeditorV2上传图片是根据web.config配置来上传图片的。
位置在:<add key="FCKeditor:UserFilesPath" value="~/Files/"/>我现在想实现的功能是:因为web服务器是群集,不能把图片放到web服务器上,需要放到指定的文件服务器上。FCKeditorV2是否支持这个功能,可以实现吗?

解决方案 »

  1.   

    可以实现,直接改他的上传源码:namespace FredCK.FCKeditorV2
    {
    public abstract class FileWorkerBase : System.Web.UI.Page
    {
    private const string DEFAULT_USER_FILES_PATH = "/UserFiles/" ;
    ……两种方法,看你的文件服务器类型,如果是web服务器直接改,如果是ftp就改为ftp上传,ftp上传参考
    http://blog.csdn.net/jaguar_yang/archive/2010/02/26/5328876.aspx
      

  2.   

    使用FredCK.FCKeditorV2.dll2.6.3,在editor\filemanager\connectors\aspx目录下 
    修改config.ascx,配置上传文件路径 
    UserFilesPath = "/UserFiles/"; 
    TypeConfig[ "File" ].FilesPat= "%UserFilesPath%file/";
    通过同步实现共享