Configure the Security tab

The Security tab of the KTML 4 server behavior allows you to define what types of files are allowed for upload, as well as other security-related settings:

 

To configure this tab, follow the instructions below:

  1. In the Allowed document types list, all the document file extensions that can be uploaded are displayed. You can add or remove extensions by using the Plus (+) and Minus (-) buttons on top of the list:

  2. In the Allowed media file types list, all the media file extensions that can be uploaded are displayed. Similar to the Allowed document types list, you can add or remove entries by clicking on the Plus (+) and Minus (-) buttons on top of the list.

  3. In the Maximum file size text box enter the maximum size (in kB) an uploaded file can have. Any files larger than the specified size cannot be uploaded.

    Note:
    KTML 4 allows you to define, in a configuration file, the maximum dimensions (width and height) an uploaded image can have. The default values are 500 pixels for the maximum width and 350 pixels for the maximum height. Read more about this in the API documentation.
    According to this feature, if the checking-the-size test when uploading images is passed, another verification is done, namely the image dimensions. If at least one of them is bigger than the maximum set in the configuration file, the image will be boxed-resized (proportionally made smaller to fit in the area outlined by the maximum dimensions).
    If the resize operation is not possible (there is no support for it), an error will be thrown and the image file will be deleted.
                               

  4. In the Hide folders text box enter the names of the folders that must not be displayed in the Remote File Explorer window. Folder names must be separated by a comma.
    E.g. Enter "Personal, svn, img", without the quotes, to exclude these folders from listing in the Remote Explorer.
    Note:
    The Hide folders option is not available in the Lite version of the editor.

  5. In the Strip server location drop-down menu select whether to display the full path to uploaded files or not, in the link to download the file.

  6. Click on the Advanced tab to continue with configuring the KTML 4 server behavior.