Restricting the amount of data users can send to a Domino database

The HTTP POST and PUT methods allow users to send data to the Domino® server. The Server record field Maximum size of request content sets a limit on the amount of data that can be sent using either POST or PUT. This limit is enforced for all POST and PUT methods, whether the target is a database, CGI program, or Java™ servlet, and applies to all Web sites.

About this task

The Web Site document contains two additional settings that control POST and PUT methods that target a database (for example, filling in a form or uploading a file attachment). These settings reside in the Web Site document so that you can specify different values for each Web site.

Procedure

  1. From the Domino Administrator, click the Configuration tab, expand the Web section and click Internet Sites.
  2. Choose the Web Site document you want to edit and click Edit Document.
  3. Click the Domino Web Engine tab and complete these fields:
    Table 1. POST Data fields

    Field

    Action

    Maximum POST data

    Enter the amount of data in KB that a user is allowed to send to the Web site in a POST request that targets a database. The default is 0, which does not restrict the amount of data that users can send (however, the amount is still limited by the Server record setting Maximum request content). This limit applies to both the PUT and the POST HTTP methods.

    If users try to send more than the maximum allowed data, Domino returns an error message to the browser.

    File compression on upload

    Choose one:

    • Enabled -- To compress files before adding them to a database. Compressing files saves disk space on the server.
    • Disabled (default) -- If clients use a browser that supports byte-range serving. You cannot download compressed files using Domino byte-range serving.