Web工程目录demo,解压FCKeditor_2.2.zip,保存在demo/FCKeditor下。用户上传文件目录demo/UserFiles。 [ DefaultValue( "~/FCKeditor/" ) ]
public string BasePath { get { object o = ViewState["BasePath"] ; if ( o == null ) o = System.Configuration.ConfigurationManager.AppSettings["FCKeditor:BasePath"] ; return ( o == null ? "~/FCKeditor/" : (string)o ) ; } set { ViewState["BasePath"] = value ; } } 2.2修改FileWorkerBase.cs增加成员变量private const string DEFAULT_USER_FILES_DIR = "/UserFiles/"; protected string UserFilesDirectoryForUpload
{ get { return Server.MapPath(DEFAULT_USER_FILES_DIR); } } 在UserFilesPath属性中增加return Request.ApplicationPath + DEFAULT_USER_FILES_DIR; |
|
来自: 悟静 > 《.net和asp.net》