Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleAllow File Extensions
Warning

If you leave an empty space in your list, then you will allow files that don't have an extension to be uploaded.

  • An empty space is defined as a delimiter character followed by no value.
ExamplesDescriptionImpact on Uploading Files
Code Block
themeMidnight
png | jpg |

Allow 3 types of files to be uploaded with an extension of:

  • png
  • jpg
  • empty

Only the following files can be uploaded by users:

  • Portable Network Graphics
  • Joint Photographic Experts Group
  • Any file without an extension (for example, a file named config)
Code Block
themeMidnight
png | jpg

Allow 3 types of files to be uploaded with an extension of:

  • png
  • jpg

Only the following files can be uploaded by users:

  • Portable Network Graphics
  • Joint Photographic Experts Group
FileCloud VersionMethodInstructionsNotes
19.1Admin Portal

To manage extension in the Admin Portal:

  1. Log into Admin Portal.
  2. From the left navigation panel, select Settings.
  3. On the Settings screen, select the Misc. tab, and then the General tab.
  4. Scroll down until you see the Allowed File Extensions box.
  5. In the Allowed File Extensions box, specify the restricted allowed  extensions, using the "|" character to separate each extension.

(warning) If you add extensions to the Allowed File Extensions list, then any extensions in the Disallowed File Extension list will be ignored.

(warning) If you leave an empty space in your list, then you will allow files that don't have an extension to be uploaded.

This list of extensions must use the following character as the delimiter:

  • '|'
  • For example, to restrict the php mp4 and mp3 extensions:

    phpmp4|mp3
Expand
titleDisallow File Extensions
FileCloud VersionMethodInstructionsNotes
Earlier than 17.3Direct Coding

To add additional file extension restrictions:

  1. Open the following file

    Code Block
    themeEmacs
    WWWROOT\config\cloudconfig.php
  2. Add the following code

    Code Block
    themeEmacs
    define("TONIDOCLOUD_DISALLOWED_RESTRICTIONS", "php|php5|phar|phtml");

To remove all file extension restrictions:

  1. Open the following file


    Code Block
    themeEmacs
    WWWROOT\config\cloudconfig.php
  2. Edit the code to match this:

    Code Block
    themeEmacs
    define("TONIDOCLOUD_DISALLOWED_RESTRICTIONS", "");
(warning)  If you add extensions to the Allowed File Extensions list, then
any extensions in the Disallowed File Extension list will be ignored.

This list of extensions must use the following character as the delimiter:(warning)

  • '|'
  • For example, to restrict php extensions:

    php|php5|phar|phtml
17.3 and later

Admin Portal

Direct Coding

To manage extensions in the Admin Portal:

  1. Log into Admin Portal.
  2. From the left navigation panel, select Settings.
  3. On the Settings screen, select the Misc. tab, and then the General tab.
  4. Scroll down until you see the Disallowed File Extensions box.
  5. In the Disallowed File Extensions box, add the additional restricted extensions.

(warning) If you add extensions to the Allowed File Extensions list, then any extensions in the Disallowed File Extension list will be ignored.


This list of extensions must use the following character as the delimiter:

  • '|'
  • For example, to add restrictions for mp3 and mp4 to the list of disallowed extensions:

    php|php5|phar|phtml|mp3|mp4