无法上传大于 4Mb 的 Umbraco 图片
Unable to upload Umbraco image larger than 4Mb
我正在使用 Umbraco 7.2.1 并在媒体部分上传一些图像。我认为 Umbraco 对 4Mb 的图像大小有限制。当我尝试上传更大尺寸的图片时,它们只是来了又消失了。
Umbraco 应该有一条消息或其他东西来通知超过大小限制,但那是一个完全不同的问题。
我的问题是如何提高这个限制?
您必须编辑 web.config、maxRequestLength 和 maxAllowedContentLength(该示例适用于 100mb 的上传):
<httpRuntime requestValidationMode="2.0" enableVersionHeader="false" targetFramework="4.5" maxRequestLength="104857600" />
还有
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="104857600" />
我正在使用 Umbraco 7.2.1 并在媒体部分上传一些图像。我认为 Umbraco 对 4Mb 的图像大小有限制。当我尝试上传更大尺寸的图片时,它们只是来了又消失了。
Umbraco 应该有一条消息或其他东西来通知超过大小限制,但那是一个完全不同的问题。
我的问题是如何提高这个限制?
您必须编辑 web.config、maxRequestLength 和 maxAllowedContentLength(该示例适用于 100mb 的上传):
<httpRuntime requestValidationMode="2.0" enableVersionHeader="false" targetFramework="4.5" maxRequestLength="104857600" />
还有
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="104857600" />