同事反映上传的几个视频有一个无法在线播放,心里就估计是url长度过长。
百度一下找到IIS 配置详解 请求长度限制调整_全智能时代的博客-CSDN博客_iis 请求长度
根据文章配置web.config文件,在wwwroot目录下,是隐藏文件。
原代码
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="true" />
<staticContent>
<mimeMap fileExtension=".pac" mimeType="text/plain" />
</staticContent>
</system.webServer>
</configuration>
添加代码
<system.web>
<httpRuntime maxRequestLength="999999999" maxQueryStringLength="2097151" />
</system.web>
添加后代码
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="true" />
<staticContent>
<mimeMap fileExtension=".pac" mimeType="text/plain" />
</staticContent>
</system.webServer>
<system.web>
<httpRuntime maxRequestLength="999999999" maxQueryStringLength="2097151" />
</system.web>
</configuration>
重启IIS服务,不能在线播放的视频可以在线播放了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)