Setting a maximum size on files 

You can set maximum sizes for files in the files-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.


About this task

You may want to set maximum sizes on files 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.


Procedure

  1. Start the wsadmin client.

  2. Start the Files Jython script interpreter.

    1. Access the Files configuration files:

        execfile("filesAdmin.py")

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

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

        FilesConfigService.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:

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

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

      FilesConfigService.showConfig()

  4. To set a maximum size for files (in kilobytes), use the following command:

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

      Note:

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

      • The file.page.maximumSizeInKb and file.attachment.maximumSizeInKb properties do not affect Files, since it has no attachments or pages.

  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 Files property changes for details.


Parent topic

Administer Files

Related concepts
Configure media galleries


Related tasks


Required post-customization step
Setting a maximum size on libraries
Starting the wsadmin client
Apply Files property changes

+

Search Tips   |   Advanced Search