s2sh+uploadify3.1 上传大文件时出现IO ERROR 本帖最后由 cgxcgx520 于 2013-04-07 16:11:15 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 struts-core内的default.properties文件内struts.multipart.maxSize=2097152最大才这么大,你10240000000000,当然不行。可以尝试修改下defaut.properties内的值看下 你好,我在struts-core内的default.properties文件内没找到struts.multipart.maxSize 你好,我的是struts2-core-2.0.11.jar 额。。我的是这样的 <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"> 不是struts-default.xml的内容,是struts2-core-2.0.11\org\apache\struts2下的default.properties文件第66行。 这里的设置大小有struts配置文件,uploadify配置以及服务器端(如tomcat配置)都要弄清楚设置大小的。以免出错哦 我的问题是我在spring mvc里设置了<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver" p:defaultEncoding="UTF-8" p:maxUploadSize="-1" />uploadify 里也设置了fileSizeLimit:0tomcat里也需要设置吗?目前我也是2G以下都没问题的,但2G以上就是不行 大家推荐个开源的JSP网络课堂项目吧 配置文件错误 希望所有搞java的同胞把工资要高点 如何用实现当点击检查用户名按钮时检测该用户名是否已经被注册? 如何用代码判断IE是32位还是64位的? 新人请教:关于取到项目根路径的HttpRequest... 我做的新年祝福页面,希望大家支持 如何在jsp和asp中设置默认值? jsp联结sqlserver. 请问谁有jbuilder 6的下载地址呀,请告诉一个吧 dojo1.8连动下来菜单设计问题,请指教 发送邮件
可以尝试修改下defaut.properties内的值看下
你好,我在struts-core内的default.properties文件内没找到struts.multipart.maxSize
<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">
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"
p:defaultEncoding="UTF-8"
p:maxUploadSize="-1"
/>uploadify 里也设置了fileSizeLimit:0tomcat里也需要设置吗?
目前我也是2G以下都没问题的,但2G以上就是不行