Configuring Default Upload and Download Limits in Laserfiche Web Access and Laserfiche WebLink.

August 13, 2015 | KB: 1012682
Web Access 8, WebLink 8, Agenda Manager 8, Web Access 9

Summary

This article explains how to increase the default upload and download limits for Laserfiche Web Access and WebLink. It is only necessary to complete the steps listed below if the default limits are not sufficient.

Note: Though Laserfiche Agenda Manager is web-based, it will not be covered in this article, as it has an upload/download limit of 100MB, which is sufficient for virtually all situations.

Note: Some browsers define their own limits. For example, Internet Explorer 6 limits downloads to 2GBs, while Internet Explorer 7 has a limit of 4GBs (for more information on Internet Explorer limits, see Microsoft Knowledge Base Article 298618).

Important: The steps below require you to edit Web Access' and/or WebLink's web.config file, which, if edited incorrectly, may cause the software to stop running. As a precaution, back up the original copy of this file (each file's location will be listed in the sections below) before making any changes. If your change causes problems, replace the edited file with the original.

Web Access Limits

By default, Web Access allows users to:

  • Upload files that are no larger than 2,097,151KBs (2GB; unless you are on IIS 7, in which case the default is 30 MB) and take no longer than 3,600 seconds (1 hour) to upload.
  • Export files that are no larger than 204,800KBs (200MB) and take no longer than 7,200 seconds (2 hours) to download.
  • E-mail files that are no larger than 204,800KBs (200MB) and take no longer than 110 seconds (less than 2 minutes) to download. Instructions on modifying these settings will NOT be covered in this article, as increasing the default e-mail limits is not recommended.

To modify the settings above, open the Web.config file, which is in Web Access' installation directory (in most cases, this will be <Installation Drive>\Program Files\Laserfiche\Web Access 8\Web Files), and follow the necessary instructions below.

Note: In order for a change to take effect, restart Internet Information Services (IIS) or restart the application pool hosting Web Access.

Note: In the code blocks listed below, some of the initial values may vary if the Web.config file has previously been edited.

To modify upload limits:

  1. In Web.config, locate the following code block:

    <location path="Dialogs/UploadFilePage.aspx">
      <system.web>
        <neatUpload useHttpModule="true" />
        <!-- By Default This allows uploads of sizes up to 2GB -->
        <httpRuntime maxRequestLength="2097151" executionTimeout="3600" />
      </system.web>
    </location>

  2. If necessary, change the value of the maxRequestLength setting to the maximum number of KBs a file can be before it cannot be uploaded via Web Access. We do not recommend setting this value greater than 2,097,151KBs (2GB).
  3. In the previous step, if you changed the maxRequestLength setting to a value larger than 30,720KBs (30MBs), and if you are using IIS 7 or higher, add the following code block directly under the <system.webServer> section. Modify the maxAllowedContentLength setting to ensure it matches the maxRequestLength setting. We do not recommend setting this value greater than 2,097,151KBs (2GB).

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

  4. If necessary, change the value of the executionTimeout setting to the maximum number of seconds that can pass during the upload process before the file cannot be uploaded via Web Access.
  5. For Web Access 9, you should also append the following block below the UploadFilePage.aspx code block.

    <location path="Dialogs/DropInFile.aspx">
      <system.web>
        <!-- By Default This allows uploads of sizes up to 2GB -->
        <httpRuntime maxRequestLength="2097151" executionTimeout="3600" />
      </system.web>
    </location>

  6. If you want to also modify the upload timeout for Web Access Light, append the following code block below the UploadFilePage.aspx code block.
  7. <location path="Light/ImportAction.aspx">
      <system.web>
        <!-- By Default This allows uploads to go on for 1 hour -->
        <httpRuntime executionTimeout="3600" />
      </system.web>
    </location>

  8. If necessary, change the value of the executionTimeout setting to the maximum number of seconds that can pass during the upload process before the file cannot be uploaded via Web Access Light.
  9. Save your changes and close the text editor.

To modify export limits:

  1. In Web.config, locate the following code block:

    <location path="Dialogs/Export/GetExportFile.aspx">
      <system.web>
        <!-- By Default This allows downloads to go on for 2 hours -->
        <httpRuntime executionTimeout="7200" />
      </system.web>
    </location>

  2. If necessary, change the value of the executionTimeout setting to the maximum number of seconds that can pass during the export process before the file cannot be exported via Web Access.
  3. If you need to change the maximum number of KBs a file can be before it cannot be exported via Web Access, replace <httpRuntime executionTimeout="7200" /> with <httpRuntime maxRequestLength="X" executionTimeout="7200" />. Replace X with the file size limit you want (in KBs). We do not recommend setting this value greater than 2,097,151KBs (2GB).
  4. Save your changes and close the text editor.

WebLink Limits

By default, WebLink allows users to export and e-mail files that are no larger than 4,096KBs (4MB) and take no longer than 900 seconds (15 minutes) to download. Since WebLink allows read-only access to all users, it is not relevant to modify upload limits.

To modify the settings above, open the Web.config file, which is in WebLink's installation directory (in most cases, this will be <Installation Drive>\Program Files\Laserfiche\WebLink 8\Web Files), and follow the necessary instructions below.

Note: In order for a change to take effect, restart IIS or restart the application pool hosting WebLink.

Note: In the code blocks listed below, some of the initial values may vary if the Web.config file has previously been edited.

Note: Modifying the export settings below will affect both exporting and e-mailing documents out of WebLink.

To modify export limits:
  1. In Web.config, locate the following code block:

    <httpRuntime executionTimeout="900" />

  2. If necessary, change the value of the executionTimeout setting to the maximum number of seconds that can pass during the export process before the file cannot be exported via WebLink.
  3. If you need to change the maximum number of KBs a file can be before it cannot be exported via WebLink, replace <httpRuntime executionTimeout="900" /> with <httpRuntime maxRequestLength="X" executionTimeout="900" />. Replace X with the file size limit you want (in KBs). We do not recommend setting this value greater than 2,097,151KBs (2GB).
  4. Save your changes and close the text editor.