.Net 网站配置文件 webconfig 配置。 字体图标+视频播放 以及 文件上传
ASP.NET MVC 上传大文件时404
原来IIS7的上传文件大小,即便是在经典模式下,也一定要在system.webServer里设置,加上去就OK了
1 <system.webServer> 2 <security> 3 <requestFiltering > 4 <requestLimits maxAllowedContentLength="1073741824" ></requestLimits> 5 </requestFiltering> 6 </security> 7 </system.webServer>
webconfig 字体图标 + 视频播放
1 <system.webServer> 2 <staticContent> 3 <mimeMap fileExtension=".mp4" mimeType="video/mp4" /> 4 <remove fileExtension=".woff"/> 5 <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> 6 <remove fileExtension=".woff2"/> 7 <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" /> 8 <remove fileExtension=".ttf" /> 9 <mimeMap fileExtension=".ttf" mimeType="application/x-font-truetype" /> 10 <remove fileExtension=".svg" /> 11 <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> 12 <remove fileExtension=".otf" /> 13 <mimeMap fileExtension=".otf" mimeType="application/x-font-opentype" /> 14 <remove fileExtension=".eot" /> 15 <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /> 16 </staticContent> 17 </system.webServer>