zoukankan      html  css  js  c++  java
  • FCK编辑器时出现的xml request error 500错误

    在使用FCK编辑器时出现的xml request error 500错误,
    我的经验是,主要有以下几点原因:
    1.上传的文件是否有写权限
    2.路径问题,有时在做项目时,在Web.config中就应该做以下修改:
     更正:
        <appSettings>
            <add key="FCKeditor:BasePath" value="/FCKeditor/"/>
            <add key="FCKeditor:UserFilesPath" value="/upload/"/>
        </appSettings>

       <appSettings>
            <add key="FCKeditor:BasePath" value="~/FCKeditor/"/>
            <add key="FCKeditor:UserFilesPath" value="~/upload/"/>
        </appSettings>
    或者
        <appSettings>
            <add key="FCKeditor:BasePath" value="/项目名/FCKeditor/"/>
            <add key="FCKeditor:UserFilesPath" value="/项目名/upload/"/>
        </appSettings>
    为什么要用这种方式,是因为有时图片无法读取带" ~ "的路径
        例如:<img src="~/upload/123.jpg">就无法在HTML中显示出来.
    做了更改以后,记得在上传时也作相应的修改.

  • 相关阅读:
    多进程乱语
    python常用函数拾零
    Flutter 安装vscode
    Flutter 安装android studio
    vsCode设置
    android ViewPager
    Android shape
    android Intent
    java 集合
    java 泛型
  • 原文地址:https://www.cnblogs.com/liangwei389/p/1172704.html
Copyright © 2011-2022 走看看