当前位置: 代码迷 >> Java Web开发 >> FCKeditor上传有关问题
  详细解决方案

FCKeditor上传有关问题

热度:70   发布时间:2016-04-17 12:16:20.0
FCKeditor上传问题
我把fckeditor放到了我的web工程里,就是禁止不了exe文件
项目一启动就出现一下的信息
信息: SessionListener: contextInitialized()

---- SimpleUploaderServlet initialization started ----

php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi
0 - php
1 - php3
2 - php5
3 - phtml
4 - asp
5 - aspx
6 - ascx
7 - jsp
8 - cfm
9 - cfc
10 - pl
11 - bat
12 - exe
13 - dll
14 - reg
15 - cgi
jpg|gif|jpeg|png|bmp
0 - jpg
1 - gif
2 - jpeg
3 - png
4 - bmp

swf|fla
0 - swf
1 - fla

---- SimpleUploaderServlet initialization completed ----

log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.

---- SimpleUploaderServlet initialization started ----

php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi
0 - php
1 - php3
2 - php5
3 - phtml
4 - asp
5 - aspx
6 - ascx
7 - jsp
8 - cfm
9 - cfc
10 - pl
11 - bat
12 - exe
13 - dll
14 - reg
15 - cgi
jpg|gif|jpeg|png|bmp
0 - jpg
1 - gif
2 - jpeg
3 - png
4 - bmp

swf|fla
0 - swf
1 - fla

---- SimpleUploaderServlet initialization completed ----

2008-7-7 15:20:39 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-7-7 15:20:39 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-7-7 15:20:39 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/47 config=null
2008-7-7 15:20:39 org.apache.catalina.startup.Catalina start
信息: Server startup in 7816 ms
应该怎么才能禁止上传exe文件呢我用的是jsp哦

------解决方案--------------------
以前用的一个配置

Java 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>true</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|xml</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>/fckeditor/editor/filemanager/browser/default/connectors/jsp/connector</url-pattern>  </servlet-mapping>
  相关解决方案