Page 1 of 1

Error When uploading product image, details enclosed

Posted: Fri Aug 21, 2009 12:50 pm
by William_firefold
I am trying to upload assets images to products on a fresh install of 7.0.3 with minimal mods. Once I have chosen the image to upload and hit the upload button to send it through, I get this error:

Code: Select all

Server Error in '/' Application.
Maximum request length exceeded.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Maximum request length exceeded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Maximum request length exceeded.]
   System.Web.HttpRequest.GetEntireRawContent() +8768242
   System.Web.HttpRequest.GetMultipartContent() +62
   System.Web.HttpRequest.FillInFormCollection() +168
   System.Web.HttpRequest.get_Form() +68
   System.Web.HttpRequest.get_HasForm() +8723223
   System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97
   System.Web.UI.Page.DeterminePostBackMode() +63
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +133
I got one image to go through, but it seems to me there is a buffer or something which is not big enough. Any ideas?

Re: Error When uploading product image, details enclosed

Posted: Mon Aug 24, 2009 12:08 pm
by AbleMods
Modify your web.config file. Locate the <System.Web> and add the following right below it:

Code: Select all

    <httpRuntime maxRequestLength="16384" />
Make sure there isn't an httpruntime tag somewhere in the file first, just in case.