Home

 

Set a maximum size on files

You can set maximum sizes for files in the files-config.xml properties file.

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.

  1. Start the wsadmin client.

  2. Access the Files configuration files...

  3. Network deployment:

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

  4. Check out the Files configuration files...

    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 while you make changes to them.

    • cell_name is the name of the WebSphere Application Server cell hosting the Lotus Connections feature. This argument is required even in stand-alone deployments. If you do not know the cell name, do one of the following to determine it:

      • Stand-alone deployment: Look at the name after the following in the file system:

          WAS_HOME\profiles\profile_name\config\cells\
          

    • Network deployment: Type the following command while in the wsadmin command processor:

        print AdminControl.getCell()
        

    For example:

    • AIX/Linux:

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

  5. Microsoft Windows:

      FilesConfigService.checkOutConfig("c:/temp","foo01Cell01")
      

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

      FilesConfigService.showConfig()
      

  7. To set a maximum size for files (in kilobytes)...

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

    • 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.

  8. Check in the changed configuration property file using the following wsadmin client command:

      FilesConfigService.checkInConfig()
      

  9. To exit the wsadmin client, type exit at the prompt.

  10. Stop and restart the server hosting the Files feature.


Administer Files

 

Related tasks

Set a maximum size on libraries

Start the wsadmin client


+

Search Tips   |   Advanced Search