[英]AsyncFileUpload Content Security Policy Directive
I am trying to upload a file to an application i have built using the AsyncFileUpload part of the AjaxToolKit. 我正在尝试将文件上传到使用AjaxToolKit的AsyncFileUpload部分构建的应用程序中。 The file is a 50mb ZIP file, when uploading i receive the following popup:
该文件是一个50mb的ZIP文件,上传时我收到以下弹出窗口:
When i click OK i get the following box 当我单击确定时,我得到以下框
If i then go into Developer tools i get the following error message in the console tab of chrome 如果我随后进入开发人员工具,则会在Chrome的控制台标签中收到以下错误消息
The value for Content Security Policy directive 'object-src' contains an invalid character 内容安全策略指令'object-src'的值包含无效字符
Any help would be appreciated 任何帮助,将不胜感激
It looks like you need to modify your Web.config like in this answer : 看来您需要像下面的答案一样修改Web.config:
<configuration>
<system.web>
<httpRuntime maxRequestLength="1048576" />
</system.web>
</configuration>
or for IIS 7 or later: 或对于IIS 7或更高版本:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.