Max file length for attachment

Topics: Customizing BugNET, General
Sep 25, 2013 at 7:51 PM
Hello:

We are trying to add a 5 MB file to a ticket, and the system is falling. The error is clearly that the file is too long to upload.

System.Web.HttpUnhandledException (0x80004005): Se produjo una excepción de tipo 'System.Web.HttpUnhandledException'. ---> System.Web.HttpException (0x80004005): Se excedió la longitud de solicitud máxima.
en System.Web.HttpRequest.GetEntireRawContent()
en System.Web.HttpRequest.GetMultipartContent()
en System.Web.HttpRequest.FillInFormCollection()
en System.Web.HttpRequest.EnsureForm()
en System.Web.HttpRequest.get_HasForm()
en System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
en System.Web.UI.Page.DeterminePostBackMode()
en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
en System.Web.UI.Page.HandleError(Exception e)
en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
en System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
en System.Web.HttpContext.InvokeCancellableCallback(WaitCallback callback, Object state)
en System.Web.UI.Page.LegacyAsyncPageBeginProcessRequest(HttpContext context, AsyncCallback callback, Object extraData)
en System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
en System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Is there any way to change this max??

Thanks.
Sep 26, 2013 at 1:48 PM
You can set this in the web.config by changing the maxRequestLength value (in bytes). The default is 4mb.
<httpRuntime maxRequestLength="4000" executionTimeout="1000" />
Marked as answer by dubeaud on 10/15/2013 at 6:16 AM
Sep 26, 2013 at 2:13 PM
Great thanks...