zoukankan      html  css  js  c++  java
  • .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>
  • 相关阅读:
    1+x LNMP + WordPress
    1+X Samba
    1+X NFS
    1+x FTP
    1+x LVM
    笔记(全)
    前端性能优化整理总结
    Event Loop我知道,宏任务微任务是什么鬼?
    深入探讨深拷贝浅拷贝两兄弟
    react后台管理系统路由方案及react-router原理解析
  • 原文地址:https://www.cnblogs.com/suni1024/p/11989593.html
Copyright © 2011-2022 走看看