+

Search Tips   |   Advanced Search

Set a maximum size on files

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

  1. Check out the Files configuration files:


    FilesConfigService.checkOutConfig("/tmp", "cell_name")

    To determine cellname:

  • To view the current configuration settings use the following command:

      FilesConfigService.showConfig()

  • To set a maximum size for files (in kilobytes):

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

    • IBM recommends the file maximum size be less than 2 GB. 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.

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

    Configure media galleries
    Required post-customization step
    Set a maximum size on libraries
    Start the wsadmin client
    Apply Files property changes