我有一家用nopCommerce (一种著名的电子商务软件)制作的数码产品商店。
但是上传5MB以上的数码产品会导致“上传失败”的错误,解决方案是什么?
发布于 2015-11-10 20:11:38
首先,检查catalogsettings.fileuploadmaximumsizebytes.的NopCommerce设置
其次,您还可以尝试编辑web.config,如下所示
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" /> <!--50MB-->
</requestFiltering>
</security>
</system.webServer>发布于 2015-11-11 06:23:00
默认情况下,ASP.Net中的最大默认文件大小为4MB。在您的web.config中查找此设置。
<httpRuntime
maxRequestLength = "number"
/>将单词number的位置更改为所需的字节大小。
发布于 2016-12-23 08:07:05
我不得不在web.config中更新两个项目。将该值更新为您希望的最大值。
1.在system.webServer标记中添加以下内容:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>2.更新httpRuntime标签:
<httpRuntime targetFramework="4.5.1" enableVersionHeader="false" maxRequestLength="2147483647"/>https://stackoverflow.com/questions/32858166
复制相似问题