经常会遇到这样的情况,某种类型的文件不能够正常下载,*.7z,自定义的文件类型等,需要在配置文件里配置后才能正常下载。

打开Web.Config文件:

  <system.webServer>
    <staticContent>
      <remove fileExtension=".exe.config" />
      <mimeMap fileExtension=".pdb" mimeType="text/xml" />
      <mimeMap fileExtension=".config" mimeType="application/msaccess" />
      <mimeMap fileExtension=".log" mimeType="text/xml" />
    </staticContent>
  </system.webServer>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2021-06-28
猜你喜欢
  • 2021-06-03
  • 2022-12-23
  • 2021-09-25
  • 2021-11-10
  • 2022-12-23
  • 2022-03-05
  • 2021-11-30
相关资源
相似解决方案