jquery uploadify 上传成功404 和 GET请求 404 Not Found


加载时总有

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"/>






你可能感兴趣的:(jquery,struts2,uploadfy)