mvc自带设置4M一下的字体可以上传,4M以上的字体需要对web.config进行设置 <system.web>
<httpRuntime targetFramework="4.5" executionTimeout="90" maxRequestLength="41943040" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" /> </system.web>
<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="41943040"></requestLimits> <!--<requestLimits maxAllowedContentLength="4194"></requestLimits>--> </requestFiltering> </security> </system.webServer>