+

Search Tips   |   Advanced Search

Set maximum sizes on media, pages, and attachments

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

Many commands require an ID as an input parameter, including library IDs, user IDs, policy IDs, and file IDs. To find an ID...

...where you provide a user's email address as input, the output includes the user's ID. We can also find IDs by using feeds. See Connections API documentation.

We can set maximum sizes on media, pages, and attachments to control the size of these individual objects. See Set maximum sizes on libraries.

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 allow users to attach large files make sure that network and browser timeout settings give users enough time to download the files.

  1. Access the Wikis configuration files:

    To get cell name...

  2. To view the current configuration settings:

      WikisConfigService.showConfig()

  3. To set a maximum size (in KB) for media, pages, and attachmentss:

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

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

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

    For better performance, set the maximum size of attachments to 2 GB. Files that are larger than that are likely to reach browser or server limitations. The following limits show the default maximum size for different types of files:

    • Media: 512 MB

    • Pages: 1 MB

    • Attachments: 75 MB

  4. Check in the configuration file.

    Check in the file during the same wsadmin session in which you checked it out. See Apply Wikis property changes.


Parent topic:
Administer Wikis


Related:
Required post-customization step
Set maximum sizes on libraries
Start the wsadmin client
Apply Wikis property changes