PerfectForms Forums » General

File Attachments only limited to 4MB even though I set limit higher

(1 post)
  • Started 2 years ago by rgatson
  1. rgatson
    Member

    After investigating the issue I have found that it is a ASP.NET limitation put in place in order to prevent DOS attacks on web servers.

    http://msdn.microsoft.com/en-us/library/system.web.configuration.httpruntimesection.maxrequestlength(VS.80).aspx
    HttpRuntimeSection.MaxRequestLength Property
    The maximum request size in kilobytes. The default size is 4096 KB (4 MB).

    In order to bypass this limit you need to :
    1.Open the Web.config file located in <Perfectforms Folder>/services/Web.config with a text editor
    2.Add the following key under the <system.web> tag:
    <httpRuntime executionTimeout="YourNewTimeInSeconds" maxRequestLength="YourNewFileSizeLimitInKBs" />
    3.Save Web.config
    4.Restart the Perfectforms application via IIS management console.

    executionTimeout is not required but would be useful because large uploads might timeout.
    maxRequestLength's maximum value is 2097150

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in or register to post.

Contact

1917 Palomar Oaks Way
Suite 160
Carlsbad, CA 92008
866.900.8588

  picture  picture  picture  picture