Configuring Zip Files and Zero Trust File Sharing

Functionality for creating and working with content in zip files in My Files is available beginning with FileCloud 22.1.
Functionality for creating and working with content in zip files in Network Shares is available beginning with FileCloud 23.232.

Users can create and upload zip files into their My Files and Network Shares folders, and then preview, download, add, and delete contents of these zip files. 

When users create Zip files within FileCloud, they may add a password to them to create them as encrypted Zero Trust folders The password (decryption key) must be entered by the user who created the zip file or anyone they share the file with to access it. Note that the decryption key is not stored in FileCloud or known by the FileCloud system, and therefore makes the file invulnerable to attacks where the system is compromised.

For information about how users add and work with zip files, see Working with Zip Files.

By default, after the password is entered the first time during a log-in session, it does not have to be entered again during that session, but a setting in policies enables you to require users to enter the password each time they access it during a session.

To enable the zip file feature

By default, the zip file feature described above is disabled. To make it available to users, enable it in the FileCloud configuration file.

  1. Open cloudconfig.php at

    • Windows: XAMPP DIRECTORY\htdocs\config\cloudconfig.php

    • Linux: /var/www/config/cloudconfig.php

  2. Locate the setting:

    define("TONIDOCLOUD_ZIP_FOLDER_ENABLE", false);
  3. Change the value of TONIDOCLOUD_ZIP_FOLDER_ENABLE from false to true:

    define("TONIDOCLOUD_ZIP_FOLDER_ENABLE", true);

    The zip feature is now enabled for users. To disable it, change the value for TONIDOCLOUD_ZIP_FOLDER_ENABLE back to false.


Zip File Settings

The following are default settings for zip files. These may be modified in the FileCloud configuration file.

SettingDefault value
Encryption methodWinZip AES-256
Compression level Normal
Compression methodDeflated
Fallback character set None
Max zip file size100 MB

WinZip AES-256 encryption is not supported by default in Windows. To enable use of Windows' default decryption method, change the encryption method to PKWARE, as shown in To change the encryption method, below.

To open the configuration file:

  1. Open cloudconfig.php at

    • Windows: XAMPP DIRECTORY\htdocs\config\cloudconfig.php

    • Linux: /var/www/config/cloudconfig.php

  2. Use the following steps to change any of the settings:

To change the encryption method:

    1. Locate the setting:

      define("TONIDOCLOUD_ZIP_FOLDER_ENCRYPTION_METHOD", 1);
    2. Change the value to one of the following:

      ValueDefinition
      0PKWARE
      1 (default)WinZip AES-256

      Note: WinZip AES256 encryption works in Windows only with 7-Zip, winRAR, and WinZip third party compression software. Use PKWARE as an alternative.
      2WinZip AES-128
      3WinZip AES-192

To change the compression level:

    1. Locate the setting.

      define("TONIDOCLOUD_ZIP_FOLDER_COMPRESSION_LEVEL", 5); 
    2. Change the value to one of the following:

      ValueDefinition
      1Super fast
      2Fast
      5 (default)Normal
      9Maximum

To change the compression method:

    1. Locate the setting.

      define("TONIDOCLOUD_ZIP_FOLDER_COMPRESSION_METHOD", 8); 
    2. Change the value to one of the following:

      ValueDefinition
      0Stored
      8 (default)Deflated

To change the fallback character set:

    1. Locate the setting.

      define("TONIDOCLOUD_ZIP_FOLDER_CHARSET_FALLBACK", null);
    2. Change the value to one of the following:

      ValueDefinition
      GREEKcp737
      BALT_RIMcp775
      LATIN1cp850
      LATIN2cp852
      CYRILLICcp855
      TURKISHcp857
      PORTUGUESEcp860
      ICELANDICcp861
      HEBREWcp862
      CANADAcp863
      ARABICcp864
      NORDICcp865
      CYRILLIC_RUSSIANcp866
      GREEK2cp869
      THAIcp874

To change the max file size:

    1. Locate the setting:

      define("TONIDOCLOUD_ZIP_FOLDER_MAX_FILE_SIZE", "100");

      The value is given in MB.

    2. You can change the value to any number, but the maximum size of zip files supported in FileCloud is 4 GB (4000 MB) so any value higher than 4000 defaults to a maximum file size of 4000 MB.

To require the password each time an encrypted zip file is accessed:

  1. In the admin portal, go to Settings > Policies, and open the policy you want to change.
  2. Click the User Policy tab:
  3. Scroll down to the bottom of the tab.
    By default Save Zip File Session Password is set to Yes. This enables users to enter the password once per log-in session to access the contents of the zip file.
  4. Change the value of Save Zip File Session Password to No.
  5. Click Save.
    Now users must enter the password each time they access the contents of the zip file.


Permissions in shared zip files

When a zip file is shared publicly, share users can view the contents of the zip file and download them. When a zip file is shared privately, the operations that share users can perform on its contents depends on their share permissions.

The following table shows what each share permission allows share users to do with the contents of a zip file

PermissionDescription
ViewPreview files and open folders in the zip file.
DownloadDownload files in the zip file and save them. Downloading folders in the zip file is not permitted.
UploadUpload files into the zip file and delete files in the zip file.
ShareShare the zip file. Sharing of files and folders inside the zip file is not permitted.