Downloadable product error when using a large file

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 13 años
I'm getting an error when I try to upload a large file as a downloadable product. If I have the same exact information and upload a small file (20k) everything works ok. If I try for a large file (50mb) I get a browser error saying the page can't load.

To make sure it wasn't a connection problem, I FTPed the file to the server and tried to do a local upload on the server via the browser into the admin site. Still got the same error.

Can you reproduce this error on your side?

nop 1.80
mssql 2005
iis 6

I reported the issue here thinking it was a configuration error but now it looks like a bug. https://www.nopcommerce.com/boards/t/7580/downloadable-product-error-when-using-a-large-file.aspx
Hace 13 años
It could be a timeout issue.

Try increasing the execution timeout like this:

protected void Page_Init(object sender, EventArgs e)
    {
          Server.ScriptTimeout = 30;
    }


P.S.  above mentioned value "30" is in minutes which means half n hour.
Hace 13 años
MichaelApproved wrote:
I'm getting an error when I try to upload a large file as a downloadable product. If I have the same exact information and upload a small file (20k) everything works ok. If I try for a large file (50mb) I get a browser error saying the page can't load.

To make sure it wasn't a connection problem, I FTPed the file to the server and tried to do a local upload on the server via the browser into the admin site. Still got the same error.

Can you reproduce this error on your side?

nop 1.80
mssql 2005
iis 6

I reported the issue here thinking it was a configuration error but now it looks like a bug. https://www.nopcommerce.com/boards/t/7580/downloadable-product-error-when-using-a-large-file.aspx

The file upload max size is limited in the configuration (web.config). If you upload too large of a file, you will see an error in the system log (Administration > System > Log) for 'Maximum request length exceeded'. You can change the limit, by editing the following line in web.config:
<httpRuntime maxRequestLength="51200" requestValidationMode="2.0"/>
  
It is currently set to 51200 KB (50MB). For more information, see the "maxRequestLength" attribute on the following page: http://msdn.microsoft.com/en-us/library/e1f13641%28v=VS.100%29.aspx

After editing the value, save the file and refresh the page.

---

Also, the ScriptTimeout property is in seconds not minutes.

.
Hace 13 años
I think the maxRequestLength value fixed the problem. We're going to test with more products and larger files next week. If I have more problems I'll report back on this thread.

Thanks!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.