s2sh+uploadify3.1 上传大文件时出现IO ERROR

cgxcgx520 2013-04-07 04:08:24
项目需要没有用ftp上传,传小文件没事,在上传超过2G的文件时 uploadify组件出现IO ERROR (目标文件,源文件都在本地)


js代码如下

$('#file_upload').uploadify({
debug: true,
'swf' : 'js/uploadify/uploadify.swf',
'uploader' : '<%=path%>/productmanager/uploadData.action',
'cancelImg' : 'js/uploadify/uploadify-cancel.png',
'auto' : 'false',
'fileObjName':'fileName',
'fileSizeLimit' : '0', //网上查到0代表不做文件大小限制
'method' : "get",
'successTimeout':'99999',
'simUploadLimit': 1 ,
'onSelect': function(e, queueId, fileObj) {
alert(fileObj.name);
}

});

struts.xml配置
<constant name="struts.multipart.maxSize" value="10240000000000"/>

朋友们帮忙看看吧,先谢过了
...全文
312 14 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunhaitao10 2013-08-07
  • 打赏
  • 举报
回复
我的问题是我在spring mvc里设置了 <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver" p:defaultEncoding="UTF-8" p:maxUploadSize="-1" /> uploadify 里也设置了fileSizeLimit:0 tomcat里也需要设置吗? 目前我也是2G以下都没问题的,但2G以上就是不行
宇宙浪子 2013-08-07
  • 打赏
  • 举报
回复
这里的设置大小有struts配置文件,uploadify配置以及服务器端(如tomcat配置)都要弄清楚设置大小的。以免出错哦
sunhaitao10 2013-08-07
  • 打赏
  • 举报
回复
楼主怎么解决的啊
cgxcgx520 2013-04-07
  • 打赏
  • 举报
回复
谢谢fangmingshijie大哥
cgxcgx520 2013-04-07
  • 打赏
  • 举报
回复
改了。。还是没效果,我先试试改改浏览器安全级别看能不能拿到文件全路径吧
cgxcgx520 2013-04-07
  • 打赏
  • 举报
回复
找到了,谢谢,我先试试
  • 打赏
  • 举报
回复
不是struts-default.xml的内容,是struts2-core-2.0.11\org\apache\struts2下的default.properties文件第66行。。。。
cgxcgx520 2013-04-07
  • 打赏
  • 举报
回复
额。。我的是这样的 <bean type="com.opensymphony.xwork2.util.XWorkConverter" name="xwork1" class="com.opensymphony.xwork2.util.XWorkConverter" /> <bean type="com.opensymphony.xwork2.util.XWorkConverter" name="struts" class="com.opensymphony.xwork2.util.AnnotationXWorkConverter" /> <bean type="com.opensymphony.xwork2.TextProvider" name="xwork1" class="com.opensymphony.xwork2.TextProviderSupport" /> <bean type="com.opensymphony.xwork2.TextProvider" name="struts" class="com.opensymphony.xwork2.TextProviderSupport" /> <!-- Only have static injections --> <bean class="com.opensymphony.xwork2.ObjectFactory" static="true" /> <bean class="com.opensymphony.xwork2.util.XWorkConverter" static="true" /> <bean class="com.opensymphony.xwork2.util.OgnlValueStack" static="true" /> <bean class="org.apache.struts2.dispatcher.Dispatcher" static="true" /> <bean class="org.apache.struts2.components.Include" static="true" /> <bean class="org.apache.struts2.dispatcher.FilterDispatcher" static="true" /> <bean class="org.apache.struts2.views.util.ContextUtil" static="true" /> <bean class="org.apache.struts2.views.util.UrlHelper" static="true" /> <package name="struts-default" abstract="true">
  • 打赏
  • 举报
回复
第66行自己看。
cgxcgx520 2013-04-07
  • 打赏
  • 举报
回复
你好,我的是struts2-core-2.0.11.jar
  • 打赏
  • 举报
回复
70行左右。。。
  • 打赏
  • 举报
回复
这么可能,你什么版本的。
cgxcgx520 2013-04-07
  • 打赏
  • 举报
回复
引用 1 楼 fangmingshijie 的回复:
struts-core内的default.properties文件内struts.multipart.maxSize=2097152 最大才这么大,你10240000000000,当然不行。 可以尝试修改下defaut.properties内的值看下
你好,我在struts-core内的default.properties文件内没找到struts.multipart.maxSize
  • 打赏
  • 举报
回复
struts-core内的default.properties文件内struts.multipart.maxSize=2097152 最大才这么大,你10240000000000,当然不行。 可以尝试修改下defaut.properties内的值看下

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧