/// 原来这个项目中用了这个控件 所以config设置文件大小没有 现在可以了
<location path="MailWrite.aspx" >
<!--上传文件的页面路径-->
<system.web>
<neatUpload useHttpModule="true" />
<!--为true则代表使用neatUpload的httpModule,false为不使用-->
<httpRuntime maxRequestLength="40960" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />
<!--允许最大为40M-->
</system.web>
</location>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<!--maxRequestLength就是文件的最大字符数,最大值不能超过2个G左右,executionTimeout是超时时间-->
<httpRuntime targetFramework="4.5" maxRequestLength="" executionTimeout="" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<!--修改服务器允许最大长度-->
<requestLimits maxAllowedContentLength=""/>
</requestFiltering>
</security>
</system.webServer>
</configuration>