如果光用JavaScript基本上不让操作文件的--介于安全方面的考虑;
FCKeditor结合你的服务器脚本(PHP,ASP,JSP),设置表单的相关属性,与通常上传文件类似;
另一方面,浏览文件与这元素有关<input id='yourFilePath' name='yourFilePath' type='file'>
如果想预览文件可响应onpreportychange事件,取得yourFilePath的路径,再直接window.open();
FCKeditor结合你的服务器脚本(PHP,ASP,JSP),设置表单的相关属性,与通常上传文件类似;
另一方面,浏览文件与这元素有关<input id='yourFilePath' name='yourFilePath' type='file'>
如果想预览文件可响应onpreportychange事件,取得yourFilePath的路径,再直接window.open();
在80端口访问时403的错误,而用8080端口访问时却出现了500的错误
**/下面是参照你的异常信息,官方网上的说明,具体如下:[在80端口访问时403的错误]:403 Forbidden//检查下你是否有操作目录的相关权限! The server understood the request, but is refusing to fulfill it.
Authorization will not help and the request SHOULD NOT be repeated.
If the request method was not HEAD and the server wishes to make
public why the request has not been fulfilled, it SHOULD describe the
reason for the refusal in the entity. If the server does not wish to
make this information available to the client, the status code 404
(Not Found) can be used instead.[用8080端口访问时却出现了500的错误]:500 Internal Server Error The server encountered an unexpected condition which prevented it
from fulfilling the request.
只是在配置时可以同时用两个访问的。所以我觉得问题非常的奇怪。
403的权限错误,我后来给所有跟 FCKeditor 相关的所有文件夹都给了 777 的所有权限,结果问题依旧。。另外,本地测试时一点问题都没有的,然后我把整个目录复制到LINUX服务器上后就出现了这些个问题
没看大懂
用户浏览的时候用的用户是?给他权限?
8080下的500错误源于apache下的几个处理XML的jar包少了
serializer.jar
xalan.jar
xercesImpl.jar
xml-apis.jar
xsltc.jar
将这几个包添加上去便好了
为自己没有检查服务器上TOMCAT的日志所犯的错误汗颜一下至于403的错误,我还在改,错误产生的原因是 Apache + Tomcat 集成时的权限设置。
谢谢顶帖者。