加载时总有
GET /Struts2Uploadify/
|
404 Not Found
|
192.168.1.24
|
1.3 KB
|
192.168.1.24:80
|
找到jquery.uploadify.js
把
this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url)
if (this.settings.button_image_url != "") {
this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url);
}
问题解决.
上传成功后报错 404错误
sturuts2 跳转设置成null
return SUCCESS;
修改成
return null;
除此之外还要设置tomcat 的上传文件大小限制:
cof/server.xml Connector 中加入maxPostSize="xxxxxx"
struts2上传文件大小限制:
<!-- 上传大小小于9M -->
<constant name="struts.multipart.maxSize" value="9999999999999"/>