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中显示出来.
    做了更改以后,记得在上传时也作相应的修改.

  • 相关阅读:
    lanya
    Apple watch ,小米微信通知
    jenkins grunt 自动构建流程
    刷机步骤
    ipad忘记了锁屏密码,已经越狱了
    ar
    如何在ubuntu中安装php
    阿里云
    docker swarm 集群及可视化界面的安装及配置
    https://github.com/gaoyangxiaozhu/DockerVI
  • 原文地址:https://www.cnblogs.com/liangwei389/p/1172704.html
Copyright © 2011-2022 走看看