在nopCommerce中上传大小超过5MB的数字产品会导致“上传失败”错误

时间:2022-11-15 01:51:48

I have a shop for digital products that is built with nopCommerce (a famous eccommerce software).
But uploading digital products with size more than 5MB results "Upload failed" erro, what is the solution?

我有一个用nopCommerce(着名的电子商务软件)构建的数字产品商店。但上传大小超过5MB的数字产品导致“上传失败”错误,解决方案是什么?

3 个解决方案

#1


0  

First of all, check the NopCommerce setting catalogsettings.fileuploadmaximumsizebytes.

首先,检查NopCommerce设置catalogsettings.fileuploadmaximumsizebytes。

Second you can also try edit the web.config as folows

其次,你也可以尝试编辑web.config作为folows

  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="52428800" /> <!--50MB-->
      </requestFiltering>
    </security>
  </system.webServer>

#2


0  

By default max default file size is 4MB in ASP.Net. Look for this setting in your web.config.

默认情况下,ASP.Net中的最大默认文件大小为4MB。在web.config中查找此设置。

<httpRuntime   
    maxRequestLength = "number" 
/>

Change where I have the word number to your desired size in bytes.

将字数更改为所需大小(以字节为单位)。

#3


0  

I had to update 2 items in the web.config. Update the value to whatever you'd like your max to be.

我不得不在web.config中更新2个项目。将值更新为您希望的最大值。

1.Add this within the system.webServer tags:

1.在system.webServer标签中添加:

<security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="2147483647" />
    </requestFiltering>
</security>

2.Update the httpRuntime tag:

2.更新httpRuntime标签:

<httpRuntime targetFramework="4.5.1" enableVersionHeader="false" maxRequestLength="2147483647"/>

#1


0  

First of all, check the NopCommerce setting catalogsettings.fileuploadmaximumsizebytes.

首先,检查NopCommerce设置catalogsettings.fileuploadmaximumsizebytes。

Second you can also try edit the web.config as folows

其次,你也可以尝试编辑web.config作为folows

  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="52428800" /> <!--50MB-->
      </requestFiltering>
    </security>
  </system.webServer>

#2


0  

By default max default file size is 4MB in ASP.Net. Look for this setting in your web.config.

默认情况下,ASP.Net中的最大默认文件大小为4MB。在web.config中查找此设置。

<httpRuntime   
    maxRequestLength = "number" 
/>

Change where I have the word number to your desired size in bytes.

将字数更改为所需大小(以字节为单位)。

#3


0  

I had to update 2 items in the web.config. Update the value to whatever you'd like your max to be.

我不得不在web.config中更新2个项目。将值更新为您希望的最大值。

1.Add this within the system.webServer tags:

1.在system.webServer标签中添加:

<security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="2147483647" />
    </requestFiltering>
</security>

2.Update the httpRuntime tag:

2.更新httpRuntime标签:

<httpRuntime targetFramework="4.5.1" enableVersionHeader="false" maxRequestLength="2147483647"/>