当前位置: 代码迷 >> Java Web开发 >> FCKeditor 没法上传图片
  详细解决方案

FCKeditor 没法上传图片

热度:169   发布时间:2016-04-17 12:23:06.0
FCKeditor 无法上传图片
我用的是FCKEDITOR2.6版的,本机测试。,我要把一张图片上传后然后显示我点击发送的服务器时,页面好像有刷新,
但没变化,/UserFiles/Image下也是空的。还要改什么啊。

WEB.XML
XML code
<servlet>        <servlet-name>Connector</servlet-name>        <servlet-class>com.fredck.FCKeditor.connector.ConnectorServlet</servlet-class>        <init-param>            <param-name>baseDir</param-name>            <param-value>/UserFiles/</param-value>        </init-param>        <init-param>            <param-name>debug</param-name>            <param-value>true</param-value>        </init-param>        <load-on-startup>1</load-on-startup>    </servlet>    <servlet>        <servlet-name>SimpleUploader</servlet-name>        <servlet-class>com.fredck.FCKeditor.uploader.SimpleUploaderServlet</servlet-class>        <init-param>            <param-name>baseDir</param-name>            <param-value>/UserFiles/</param-value>        </init-param>        <init-param>            <param-name>debug</param-name>            <param-value>true</param-value>        </init-param>        <init-param>            <param-name>enabled</param-name>            <param-value>false</param-value>        </init-param>        <init-param>            <param-name>AllowedExtensionsFile</param-name>            <param-value></param-value>        </init-param>        <init-param>            <param-name>DeniedExtensionsFile</param-name>            <param-value>php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi</param-value>        </init-param>        <init-param>            <param-name>AllowedExtensionsImage</param-name>            <param-value>jpg|gif|jpeg|png|bmp</param-value>        </init-param>        <init-param>            <param-name>DeniedExtensionsImage</param-name>            <param-value></param-value>        </init-param>        <init-param>            <param-name>AllowedExtensionsFlash</param-name>            <param-value>swf|fla</param-value>        </init-param>        <init-param>            <param-name>DeniedExtensionsFlash</param-name>            <param-value></param-value>        </init-param>        <load-on-startup>1</load-on-startup>    </servlet>  <servlet-mapping>    <servlet-name>Connector</servlet-name>    <url-pattern>/editor/filemanager/browser/default/connectors/jsp/connector</url-pattern>  </servlet-mapping>    <servlet-mapping>    <servlet-name>SimpleUploader</servlet-name>    <url-pattern>/editor/filemanager/upload/simpleuploader</url-pattern>  </servlet-mapping>  <taglib>        <taglib-uri>/FCKeditor</taglib-uri>        <taglib-location>/WEB-INF/FCKeditor.tld</taglib-location>    </taglib>


------解决方案--------------------
把路径配置对
  相关解决方案