FCKeditorV2上传图片是根据web.config配置来上传图片的。
位置在:<add key="FCKeditor:UserFilesPath" value="~/Files/"/>我现在想实现的功能是:因为web服务器是群集,不能把图片放到web服务器上,需要放到指定的文件服务器上。FCKeditorV2是否支持这个功能,可以实现吗?
位置在:<add key="FCKeditor:UserFilesPath" value="~/Files/"/>我现在想实现的功能是:因为web服务器是群集,不能把图片放到web服务器上,需要放到指定的文件服务器上。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
修改config.ascx,配置上传文件路径
UserFilesPath = "/UserFiles/";
TypeConfig[ "File" ].FilesPat= "%UserFilesPath%file/";
通过同步实现共享