Setting maximum sizes on media, pages, and attachments 

You can set maximum sizes for media, pages, and attachments in the wikis-config.xml properties file.


Before starting

To edit configuration files, use the IBM WAS wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.

Many commands ask for IDs as input parameters, such as library IDs, user IDs, policy IDs, and file IDs. You can use commands that take parameters you do know to return data including the ID you are looking for. For example, run WikisMemberService.getByEmail(string email) providing a user's email address and among the data returned is the user's ID. You can also find IDs using feeds. See the Lotus Connections API documentation for information on getting ID information using feeds.


About this task

You may want to set maximum sizes on media, pages, and attachments to control the size of these individual objects within the larger library size setting. See the topic Setting maximum sizes on libraries for more information.

In Wikis, pages are a type of media, so the maximum setting for pages cannot be larger than the maximum setting for media. Attachments have no relationship to media or pages, and can be any maximum size, however if you let people attach very large files make sure that network and browser timeout settings allow users to download those large files.


Procedure

  1. Start the wsadmin client.

  2. Start the Wikis Jython script interpreter.

    1. Access the Wikis configuration files:

        execfile("wikisAdmin.py")

        If you are asked to select a server, you can select any server.

    2. Check out the Wikis configuration files using the following command:

        WikisConfigService.checkOutConfig("<working_directory>", "<cell_name>")

        where:

        • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied. The files are kept in this working directory while you make changes to them.

            Note: AIX and Linux™ only: The directory must grant write permissions or the command will not run successfully.

        • <cell_name> is the name of the WAS cell hosting the IBM Connections application. This argument is required. If you do not know the cell name, you can determine it by typing the following command in the wsadmin command processor:

            print AdminControl.getCell()

        For example:

        WikisConfigService.checkOutConfig("/opt/my_temp_dir", "CommServerNode01Cell")

  3. Optional: To view the current configuration settings use the following command:

      WikisConfigService.showConfig()

  4. To set a maximum size (in kilobytes) for media, pages, and attachments, use the following commands:

      WikisConfigService.updateConfig("file.media.maximumSizeInKb", "<number_of_kilobytes>")

      WikisConfigService.updateConfig("file.page.maximumSizeInKb", "<number_of_kilobytes>")

      WikisConfigService.updateConfig("file.attachment.maximumSizeInKb", "<number_of_kilobytes>")

      Note: It is recommended that the attachment maximum size be below 2GB. Files larger than that are likely to reach browser or server limitations.

  5. You must check the configuration files back in after making changes, and they must be checked in during the same wsadmin session in which they were checked out for the changes to take effect. See the topic Apply Wikis property changes for details.


Parent topic

Administer Wikis


Related tasks


Required post-customization step
Setting maximum sizes on libraries
Starting the wsadmin client
Apply Wikis property changes


   

 

});

+

Search Tips   |   Advanced Search