我上点fck面板-》图片按钮-》浏览服务器 就出问题了,也就是说浏览服务器都不行了上传就更不用说了。
我点浏览服务器出错如下:
This connector is disabled.Please check the "edtor/filemanager/connectors/php/config.php" file
我在本机上面没有任何问题的。。
我的web.xml内容如下:
<filter>
<filter-name>
struts2
</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/struts/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>Connector</servlet-name>
<servlet-class>
net.fckeditor.connector.ConnectorServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Connector</servlet-name>
<url-pattern>
/fckeditor/editor/filemanager/connectors/*
</url-pattern>
</servlet-mapping>
我的fckconfig.js的部份内容如下:
// values of LinkBrowserURL, ImageBrowserURL and so on.
// Custom implementations should just ignore it.
var _FileBrowserLanguage = 'php' ; //jsp | aspx | php
var _QuickUploadLanguage = 'php' ; //jsp | aspx | php
// Don't care about the following two lines. It just calculates the correct connector
// extension to use for the default File Browser (Perl uses "cgi").
var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;
var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ;
我把以下二行
var _FileBrowserLanguage = 'php' ; //jsp | aspx | php
var _QuickUploadLanguage = 'php' ; //jsp | aspx | php
改为
var _FileBrowserLanguage = 'jsp' ; //jsp | aspx | php
var _QuickUploadLanguage = 'jsp' ; //jsp | aspx | php
可以浏览服务器了,但是不能上传图片,应该是被struts2拦截了。(出现203的错误)
请教高手帮忙解决啊,本人万分感激。
qq:234838917
邮箱:cnfjzpy@yahoo.cn
------解决方案--------------------
修改fckconfig.js文件中的
var _FileBrowserLanguage = 'php' ; //jsp | aspx | php
var _QuickUploadLanguage = 'php' ; //jsp | aspx | php
改为
var _FileBrowserLanguage = 'do' ; //jsp | aspx | php
var _QuickUploadLanguage = 'do' ; //jsp | aspx | php
或别的你服务器可以认的后缀.不能和php、asp、一样就可以了啊...