本帖最后由 cgxcgx520 于 2013-04-07 16:11:15 编辑

解决方案 »

  1.   

    struts-core内的default.properties文件内struts.multipart.maxSize=2097152最大才这么大,你10240000000000,当然不行。
    可以尝试修改下defaut.properties内的值看下
      

  2.   


    你好,我在struts-core内的default.properties文件内没找到struts.multipart.maxSize
      

  3.   

    你好,我的是struts2-core-2.0.11.jar
      

  4.   

    额。。我的是这样的
     <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">
      

  5.   

    不是struts-default.xml的内容,是struts2-core-2.0.11\org\apache\struts2下的default.properties文件第66行。
      

  6.   

    这里的设置大小有struts配置文件,uploadify配置以及服务器端(如tomcat配置)都要弄清楚设置大小的。以免出错哦
      

  7.   

    我的问题是我在spring mvc里设置了
    <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"
            p:defaultEncoding="UTF-8"
            p:maxUploadSize="-1"
            />uploadify 里也设置了fileSizeLimit:0tomcat里也需要设置吗?
    目前我也是2G以下都没问题的,但2G以上就是不行