/// 原來這個項目中用了這個控件 所以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>
1 <configuration>
2 <system.web>
3 <compilation debug="true" targetFramework="4.5" />
4 <!--maxRequestLength就是文件的最大字符數,最大值不能超過2個G左右,executionTimeout是超時時間-->
5 <httpRuntime targetFramework="4.5" maxRequestLength="1073741824" executionTimeout="3600" />
6 </system.web>
7 <system.webServer>
8 <security>
9 <requestFiltering>
10 <!--修改服務器允許最大長度-->
11 <requestLimits maxAllowedContentLength="1073741824"/>
12 </requestFiltering>
13 </security>
14 </system.webServer>
15 </configuration>