oo

Copying Folders and Documents

Liferay 7.4 2024.Q1

With Documents and Media, you can copy folders, files, and shortcuts between sites and connected asset libraries. This can help accelerate projects by quickly duplicating structures across contexts.

Before copying your content, ensure the destination site or asset library has access to the copied files’ tags, categories, or custom document types. Otherwise a file’s tags and categories are removed, and Liferay uses the Basic Document type for it.

Note

File metadata and related entities (e.g., comments, subscriptions) are not copied. To copy documents with their related entities, you must use the site’s export/import feature.

Copying content within Documents and Media requires specific permissions:

  • View permissions in the origin site or asset library
  • Add permissions in the destination

See Documents and Media Permissions Reference for more information.

Copying Between Sites and Asset Libraries

  1. Navigate to the desired folder in the Documents and Media application.

  2. To copy a single folder, file, or shortcut, click its Actions (Actions Button) and select Copy To.

    Copy one folder or document.

    To copy in bulk, select multiple items and click Copy To in the document management toolbar.

    Copy multiple folders and documents.

  3. Determine a destination for the copied items. This destination can be any site or connected asset library that you can access.

    Determine a destination for the copied items.

  4. Click Copy to execute the operation.

Setting Copy Size Limit

Depending on the size of the files, copying can be resource intensive. You can reduce the impact on system resources by setting a size limit for copy operations.

  1. Open the Global Menu (Global Menu), go to the Control Panel tab, and click System Settings or Instance Settings.

  2. Go to Documents and MediaFile Size Limits.

  3. Enter a size limit for copy operations. The default value is 52428800 bytes.

    Enter a size limit for copy operations in bytes.

  4. Click Save.

Now copy operations cannot exceed the set limit.